mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
delete some references to modules.locale
This commit is contained in:
parent
df4a4b7fef
commit
a3ee3368da
6 changed files with 5 additions and 8 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,4 +5,4 @@ phpunit.xml
|
|||
.phpunit.result.cache
|
||||
composer.lock
|
||||
yarn-error.log
|
||||
modules.local/ppcp-button/assets/*
|
||||
modules/ppcp-button/assets/*
|
||||
|
|
|
@ -89,7 +89,7 @@ return array(
|
|||
},
|
||||
'button.url' => static function ( ContainerInterface $container ): string {
|
||||
return plugins_url(
|
||||
'/modules.local/ppcp-button/',
|
||||
'/modules/ppcp-button/',
|
||||
dirname( __FILE__, 3 ) . '/woocommerce-paypal-commerce-gateway.php'
|
||||
);
|
||||
},
|
||||
|
|
|
@ -108,7 +108,7 @@ return array(
|
|||
|
||||
'onboarding.url' => static function ( ContainerInterface $container ): string {
|
||||
return plugins_url(
|
||||
'/modules.local/ppcp-onboarding/',
|
||||
'/modules/ppcp-onboarding/',
|
||||
dirname( __FILE__, 3 ) . '/woocommerce-paypal-commerce-gateway.php'
|
||||
);
|
||||
},
|
||||
|
|
|
@ -1556,7 +1556,7 @@ return array(
|
|||
},
|
||||
'wcgateway.url' => static function ( ContainerInterface $container ): string {
|
||||
return plugins_url(
|
||||
'/modules.local/ppcp-wc-gateway/',
|
||||
'/modules/ppcp-wc-gateway/',
|
||||
dirname( __FILE__, 3 ) . '/woocommerce-paypal-commerce-gateway.php'
|
||||
);
|
||||
},
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">./src</directory>
|
||||
<directory suffix=".php">./modules.local/</directory>
|
||||
<directory suffix=".php">./modules/</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
<testsuites>
|
||||
|
|
|
@ -36,9 +36,6 @@ use Inpsyde\PayPalCommerce\ApiClient\Factory\PurchaseUnitFactory;
|
|||
foreach (glob(plugin_dir_path(__FILE__).'modules/*/module.php') as $moduleFile) {
|
||||
$modules[] = (@require $moduleFile)();
|
||||
}
|
||||
foreach (glob(plugin_dir_path(__FILE__).'modules.local/*/module.php') as $moduleFile) {
|
||||
$modules[] = (@require $moduleFile)();
|
||||
}
|
||||
$providers = [];
|
||||
foreach ($modules as $module) {
|
||||
/* @var $module ModuleInterface */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue