Skip to content

Commit

Permalink
Removed the define for the JETPACK_AUTOLOAD_DEV constant
Browse files Browse the repository at this point in the history
This is likely something that should be part of the `wp-config.php` for development environments of feature plugins as opposed to defined here.
  • Loading branch information
ObliviousHarmony committed Jul 30, 2020
1 parent c752721 commit 5e354c4
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,6 @@ public static function init() {
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;
Expand Down

0 comments on commit 5e354c4

Please sign in to comment.