Skip to content

Commit 2f48ff6

Browse files
authored
Untangle: Do not add the dashboard switcher for the wp-admin interface (#35210)
1 parent 6b72ae0 commit 2f48ff6

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: other
3+
4+
Remove the dashboard swither for the wp-admin interface.

projects/plugins/jetpack/modules/masterbar/admin-menu/class-atomic-admin-menu.php

+12
Original file line numberDiff line numberDiff line change
@@ -533,4 +533,16 @@ public function add_appearance_menu() {
533533
parent::add_appearance_menu();
534534
}
535535
}
536+
537+
/**
538+
* Adds a dashboard switcher to the list of screen meta links of the current page.
539+
*/
540+
public function add_dashboard_switcher() {
541+
// When the interface is set to wp-admin, do not show the dashboard switcher.
542+
if ( get_option( 'wpcom_admin_interface' ) === 'wp-admin' ) {
543+
return;
544+
}
545+
546+
parent::add_dashboard_switcher();
547+
}
536548
}

0 commit comments

Comments
 (0)