Make package-based load inert when plugin is active. (https://github.com/woocommerce/woocommerce-admin/pull/3555)

This commit is contained in:
Jeff Stieler 2020-01-14 08:13:58 -07:00 committed by GitHub
parent 45659dbb3e
commit c15bbc9e4b
1 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,12 @@ class Package {
if ( ! $wordpress_minimum_met ) {
return;
}
// Avoid double initialization when the feature plugin is in use.
if ( defined( 'WC_ADMIN_VERSION_NUMBER' ) ) {
return;
}
FeaturePlugin::instance()->init();
}