Merge pull request #27185 from woocommerce/fix/jetpack-autoloader-constant

Removed the define for the `JETPACK_AUTOLOAD_DEV` constant
This commit is contained in:
Néstor Soriano 2020-08-04 08:25:15 +02:00 committed by GitHub
commit 54390bb094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 14 deletions

View File

@ -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;