Skip to content

Commit

Permalink
Don't load the nav-unification.css for the admin bar
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur791004 committed Jul 17, 2024
1 parent b134e44 commit 6bd32ec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ public function enqueue_scripts() {
)
);

// Load nav unification styles when the user isn't using wp-admin interface style.
if ( ! $this->use_wp_admin_interface() ) {
// Load nav unification styles for the admin bar when the user isn't using wp-admin interface style.
if ( ! $this->use_wp_admin_interface() && ! ( defined( 'WPCOM_ADMIN_BAR_UNIFICATION' ) && WPCOM_ADMIN_BAR_UNIFICATION ) ) {
Assets::register_script(
'jetpack-admin-nav-unification',
$assets_base_path . 'admin-menu-nav-unification.js',
Expand Down

0 comments on commit 6bd32ec

Please sign in to comment.