This commit is contained in:
paul sealock 2024-09-05 16:20:19 +12:00
parent 56790445f4
commit d16307c1de
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,8 @@ if ( ! class_exists( 'WC_Admin_Assets', false ) ) :
// Sitewide menu CSS.
wp_enqueue_style( 'woocommerce_admin_menu_styles' );
$is_new_settings = isset( $_GET['path'] ) && strpos( $_GET['path'], '/settings' ) !== false;
// Admin styles for WC pages only.
if ( in_array( $screen_id, wc_get_screen_ids() ) || $is_new_settings ) {
wp_enqueue_style( 'woocommerce_admin_styles' );