Skip to content

Commit

Permalink
Revert "Admin Bar: Make it consistent between Calypso and WP Admin re…
Browse files Browse the repository at this point in the history
…gardless…" (#38389)

This reverts commit ebfa7d3.
  • Loading branch information
lupus2k authored Jul 17, 2024
1 parent 3c929a5 commit d88fc41
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 37 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

use Automattic\Jetpack\Jetpack_Mu_Wpcom;

define( 'WPCOM_ADMIN_BAR_UNIFICATION', true );
if ( get_option( 'wpcom_admin_interface' ) !== 'wp-admin' ) {
return;
}

/**
* Enqueue assets needed by the WordPress.com admin bar.
Expand Down
4 changes: 0 additions & 4 deletions projects/packages/masterbar/changelog/feat-unify-masterbar

This file was deleted.

2 changes: 1 addition & 1 deletion projects/packages/masterbar/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"extra": {
"autotagger": true,
"branch-alias": {
"dev-trunk": "0.4.x-dev"
"dev-trunk": "0.3.x-dev"
},
"changelogger": {
"link-template": "https://github.com/Automattic/jetpack-masterbar/compare/v${old}...v${new}"
Expand Down
2 changes: 1 addition & 1 deletion projects/packages/masterbar/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-masterbar",
"version": "0.4.0-alpha",
"version": "0.3.1",
"description": "The WordPress.com Toolbar feature replaces the default admin bar and offers quick links to the Reader, all your sites, your WordPress.com profile, and notifications.",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/masterbar/#readme",
"bugs": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct() {
add_action( 'rest_api_init', array( $this, 'register_admin_color_meta' ) );
}

if ( ( defined( 'WPCOM_ADMIN_BAR_UNIFICATION' ) && WPCOM_ADMIN_BAR_UNIFICATION ) || get_option( 'wpcom_admin_interface' ) === 'wp-admin' ) { // Classic sites.
if ( get_option( 'wpcom_admin_interface' ) === 'wp-admin' ) { // Classic sites.
add_filter( 'css_do_concat', array( $this, 'disable_css_concat_for_color_schemes' ), 10, 2 );
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_color_scheme_for_sidebar_notice' ) );
} else { // Default and self-hosted sites.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ public function enqueue_scripts() {
)
);

// Load nav unification styles for the admin bar when the user isn't using wp-admin interface style.
if ( ! $this->use_wp_admin_interface() && ! ( defined( 'WPCOM_ADMIN_BAR_UNIFICATION' ) && WPCOM_ADMIN_BAR_UNIFICATION ) ) {
// Load nav unification styles when the user isn't using wp-admin interface style.
if ( ! $this->use_wp_admin_interface() ) {
Assets::register_script(
'jetpack-admin-nav-unification',
$assets_base_path . 'admin-menu-nav-unification.js',
Expand Down
4 changes: 2 additions & 2 deletions projects/packages/masterbar/src/class-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
class Main {

const PACKAGE_VERSION = '0.4.0-alpha';
const PACKAGE_VERSION = '0.3.1';

/**
* Initializer.
Expand All @@ -29,7 +29,7 @@ public static function init() {

new Admin_Color_Schemes();

if ( ( defined( 'WPCOM_ADMIN_BAR_UNIFICATION' ) && WPCOM_ADMIN_BAR_UNIFICATION ) || get_option( 'wpcom_admin_interface' ) === 'wp-admin' ) {
if ( get_option( 'wpcom_admin_interface' ) === 'wp-admin' ) {
return;
}

Expand Down
5 changes: 0 additions & 5 deletions projects/plugins/jetpack/changelog/feat-unify-masterbar

This file was deleted.

4 changes: 2 additions & 2 deletions projects/plugins/jetpack/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

4 changes: 2 additions & 2 deletions projects/plugins/mu-wpcom-plugin/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions projects/plugins/wpcomsh/changelog/feat-unify-masterbar

This file was deleted.

4 changes: 2 additions & 2 deletions projects/plugins/wpcomsh/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d88fc41

Please sign in to comment.