Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion modules/masterbar/masterbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,13 @@ public function admin_body_class( $admin_body_classes ) {
* Remove the default Admin Bar CSS.
*/
public function remove_core_styles() {
wp_dequeue_style( 'admin-bar' );
/*
* Notifications need the admin bar styles,
* so let's not remove them when the module is active.
*/
if ( ! Jetpack::is_module_active( 'notes' ) ) {
wp_dequeue_style( 'admin-bar' );
}
}

/**
Expand Down