Removed the define for the `JETPACK_AUTOLOAD_DEV` constant

This is likely something that should be part of the `wp-config.php` for development environments of feature plugins as opposed to defined here.
This commit is contained in:
Christopher Allford 2020-07-30 14:55:14 -07:00
parent c752721c2e
commit 5e354c451c
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;