Skip to content

Commit

Permalink
Untangle: Do not add the dashboard switcher for the wp-admin interface (
Browse files Browse the repository at this point in the history
  • Loading branch information
taipeicoder authored Jan 26, 2024
1 parent 6b72ae0 commit 2f48ff6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: other

Remove the dashboard swither for the wp-admin interface.
Original file line number Diff line number Diff line change
Expand Up @@ -533,4 +533,16 @@ public function add_appearance_menu() {
parent::add_appearance_menu();
}
}

/**
* Adds a dashboard switcher to the list of screen meta links of the current page.
*/
public function add_dashboard_switcher() {
// When the interface is set to wp-admin, do not show the dashboard switcher.
if ( get_option( 'wpcom_admin_interface' ) === 'wp-admin' ) {
return;
}

parent::add_dashboard_switcher();
}
}

0 comments on commit 2f48ff6

Please sign in to comment.