Remove deprecated warning and make use of safe define
This commit is contained in:
parent
bc7830b670
commit
89722dfafc
|
@ -84,7 +84,6 @@ class Loader extends DeprecatedClassFacade {
|
|||
if ( ! defined( 'WC_ABSPATH' ) ) {
|
||||
return;
|
||||
}
|
||||
wc_deprecated_function( 'should_use_minified_js_file', '6.3', '\Automattic\WooCommerce\Internal\Admin\WCAdminAssets::should_use_minified_js_file()' );
|
||||
return WCAdminAssets::should_use_minified_js_file( $script_debug );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -120,7 +120,7 @@ class FeaturePlugin {
|
|||
* @deprecated 3.3.0
|
||||
* @var string
|
||||
*/
|
||||
define( 'WC_ADMIN_VERSION_NUMBER', '3.3.0' );
|
||||
$this->define( 'WC_ADMIN_VERSION_NUMBER', '3.3.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue