diff --git a/includes/admin/class-wc-admin-assets.php b/includes/admin/class-wc-admin-assets.php index db37f05845a..720ce36eb19 100644 --- a/includes/admin/class-wc-admin-assets.php +++ b/includes/admin/class-wc-admin-assets.php @@ -62,7 +62,7 @@ class WC_Admin_Assets { global $wp_query, $post; $screen = get_current_screen(); - $wc_screen_id = strtolower( __( 'WooCommerce', 'woocommerce' ) ); + $wc_screen_id = sanitize_title( __( 'WooCommerce', 'woocommerce' ) ); $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; // Register scripts