load settings assests
This commit is contained in:
parent
46deb6763d
commit
3ab5d9ec49
|
@ -41,6 +41,10 @@ if ( ! class_exists( 'WC_Admin_Assets', false ) ) :
|
||||||
$screen = get_current_screen();
|
$screen = get_current_screen();
|
||||||
$screen_id = $screen ? $screen->id : '';
|
$screen_id = $screen ? $screen->id : '';
|
||||||
|
|
||||||
|
if ( strpos( $_GET['path'], '/settings' ) !== false ) {
|
||||||
|
$screen_id = 'woocommerce_page_wc-settings';
|
||||||
|
}
|
||||||
|
|
||||||
// Register admin styles.
|
// Register admin styles.
|
||||||
wp_register_style( 'woocommerce_admin_menu_styles', WC()->plugin_url() . '/assets/css/menu.css', array(), $version );
|
wp_register_style( 'woocommerce_admin_menu_styles', WC()->plugin_url() . '/assets/css/menu.css', array(), $version );
|
||||||
wp_register_style( 'woocommerce_admin_styles', WC()->plugin_url() . '/assets/css/admin.css', array(), $version );
|
wp_register_style( 'woocommerce_admin_styles', WC()->plugin_url() . '/assets/css/admin.css', array(), $version );
|
||||||
|
|
Loading…
Reference in New Issue