Make package-based load inert when plugin is active. (https://github.com/woocommerce/woocommerce-admin/pull/3555)
This commit is contained in:
parent
45659dbb3e
commit
c15bbc9e4b
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue