Skip to content

Commit

Permalink
Superadmin bar: always point to wp-admin even on Default admin interf…
Browse files Browse the repository at this point in the history
…ace style
  • Loading branch information
fushar committed Sep 24, 2024
1 parent 6e432d4 commit 84ed4dc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ public function add_node( $args ) {
parent::add_node( $args );
return;
}
if ( isset( $args['id'] ) && $args['id'] === 'wpcom-blog-dashboard' ) {
parent::add_node( $args );
return;
}
$home_url = home_url( '/' );
$site_slug = wp_parse_url( $home_url, PHP_URL_HOST );
$href = str_replace( $home_url, '', $args['href'] );
Expand Down

0 comments on commit 84ed4dc

Please sign in to comment.