diff --git a/projects/packages/jetpack-mu-wpcom/changelog/admin-bar-dash-fix b/projects/packages/jetpack-mu-wpcom/changelog/admin-bar-dash-fix new file mode 100644 index 0000000000000..76a7100893a31 --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/admin-bar-dash-fix @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Superadmin bar: always point to wp-admin even on Default admin interface style diff --git a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-bar/class-wpcom-admin-bar.php b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-bar/class-wpcom-admin-bar.php index f3bec819bf0b6..98da21cb92f08 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-bar/class-wpcom-admin-bar.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-bar/class-wpcom-admin-bar.php @@ -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'] );