Skip to content

Commit

Permalink
Global header: Prevent redesign site styles from loading in the heade…
Browse files Browse the repository at this point in the history
…r endpoint response

Fixes the style bleed in trac templates mentioned here https://wordpress.slack.com/archives/C02QB8GMM/p1696351749483139
  • Loading branch information
ryelle committed Oct 3, 2023
1 parent 41b14e1 commit 505ccdd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mu-plugins/blocks/global-header-footer/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,10 @@ function rest_render_global_header( $request ) {
function() {
remove_theme_support( 'wp4-styles' );

wp_dequeue_style( 'wporg-style' );
wp_dequeue_style( 'wporg-parent-2021-style' );
wp_dequeue_style( 'wporg-parent-block-styles' );
wp_dequeue_style( 'wporg-main-2022-style' );

wp_enqueue_style( 'dashicons' );
wp_enqueue_style( 'open-sans' );
},
Expand Down

0 comments on commit 505ccdd

Please sign in to comment.