Skip to content

Commit

Permalink
Revert Custom CSS removal by adding back the code that loads it. (#38173
Browse files Browse the repository at this point in the history
)

* Adding back the changes removed in #38118.

* changelog.

* Project versions.
  • Loading branch information
zinigor authored Jul 4, 2024
1 parent 22e1cb1 commit 14134dc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Custom CSS: Add the loading mechanism back after it was reverted.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public static function init() {
add_action( 'admin_menu', array( __CLASS__, 'load_wpcom_simple_odyssey_stats' ) );
}

// These features run only on atomic sites.
if ( defined( 'IS_ATOMIC' ) && IS_ATOMIC ) {
add_action( 'plugins_loaded', array( __CLASS__, 'load_custom_css' ) );
}

// Unified navigation fix for changes in WordPress 6.2.
add_action( 'admin_enqueue_scripts', array( __CLASS__, 'unbind_focusout_on_wp_admin_bar_menu_toggle' ) );

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Updated composer.lock.


5 changes: 5 additions & 0 deletions projects/plugins/wpcomsh/changelog/revert-custom-css-removal
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Updated composer.lock.


0 comments on commit 14134dc

Please sign in to comment.