Merge pull request #27185 from woocommerce/fix/jetpack-autoloader-constant
Removed the define for the `JETPACK_AUTOLOAD_DEV` constant
This commit is contained in:
commit
54390bb094
|
@ -36,20 +36,6 @@ class Autoloader {
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* In order to support local development for feature plugins the autoloader must support dev versions.
|
||||
*
|
||||
* - If the checked out branch cannot supply Composer with version information then it
|
||||
* assigns it a dev version string for the Jetpack Autoloader to use.
|
||||
* - By default the Jetpack Autoloader will ignore these dev versions in favor of tagged versions.
|
||||
*
|
||||
* Due to this interaction, feature plugin files from the included packages will always be loaded instead
|
||||
* of the versions in the feature plugin when checked out from a repository as a dev version. By setting
|
||||
* this constant we change the behavior of the autoloader so that dev versions are prioritized over the
|
||||
* tagged versions included in WooCommerce Core.
|
||||
*/
|
||||
define( 'JETPACK_AUTOLOAD_DEV', true );
|
||||
|
||||
$autoloader_result = require $autoloader;
|
||||
if ( ! $autoloader_result ) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue