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 (#39501)
  • Loading branch information
fushar authored and gogdzl committed Oct 25, 2024
1 parent e42ae55 commit aebc74e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Superadmin bar: always point to wp-admin even on Default admin interface style
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 aebc74e

Please sign in to comment.