diff --git a/projects/packages/jetpack-mu-wpcom/changelog/debug-bar-left b/projects/packages/jetpack-mu-wpcom/changelog/debug-bar-left new file mode 100644 index 0000000000000..59e7467f9f383 --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/debug-bar-left @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Admin bar: ensure the Atomic debug bar is the leftmost menu diff --git a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-bar/wpcom-admin-bar.php b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-bar/wpcom-admin-bar.php index df845aeaca305..168784c627afe 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-bar/wpcom-admin-bar.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-bar/wpcom-admin-bar.php @@ -57,26 +57,19 @@ function wpcom_enqueue_admin_bar_assets() { ); /** - * Hotfix the order of the admin menu items due to WP 6.6 - * See https://core.trac.wordpress.org/ticket/61615. + * Force the Atomic debug bar menu to be the first menu at the top-right. */ - $wp_version = get_bloginfo( 'version' ); - if ( version_compare( $wp_version, '6.6', '<=' ) && version_compare( $wp_version, '6.6.RC', '>=' ) ) { + if ( defined( 'AT_PROXIED_REQUEST' ) && AT_PROXIED_REQUEST ) { wp_add_inline_style( 'wpcom-admin-bar', <<