Sanitize screen id. Closes #4788

This commit is contained in:
Mike Jolley 2014-02-19 14:30:21 +00:00 committed by Coen Jacobs
parent 43d87e724e
commit 61214a7eef
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class WC_Admin_Assets {
global $wp_query, $post; global $wp_query, $post;
$screen = get_current_screen(); $screen = get_current_screen();
$wc_screen_id = strtolower( __( 'WooCommerce', 'woocommerce' ) ); $wc_screen_id = sanitize_title( __( 'WooCommerce', 'woocommerce' ) );
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
// Register scripts // Register scripts