Remove deprecated warning and make use of safe define

This commit is contained in:
Ilyas Foo 2022-04-28 14:23:48 +08:00
parent bc7830b670
commit 89722dfafc
2 changed files with 1 additions and 2 deletions

View File

@ -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 );
}
}

View File

@ -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' );
}
/**