File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,13 @@ function gutenberg_enqueue_global_styles() {
44
44
45
45
$ stylesheet = gutenberg_get_global_stylesheet ();
46
46
47
- if ( $ is_block_theme ) {
47
+ if ( $ is_block_theme && ! is_customize_preview () ) {
48
48
/*
49
49
* Dequeue the Customizer's custom CSS
50
50
* and add it before the global styles custom CSS.
51
+ * This is not done in the Customizer preview to
52
+ * facilitate live previewing changes via
53
+ * wp-includes/js/customize-preview.js.
51
54
*/
52
55
remove_action ( 'wp_head ' , 'wp_custom_css_cb ' , 101 );
53
56
// Get the custom CSS from the Customizer and add it to the global stylesheet.
@@ -79,7 +82,7 @@ function gutenberg_enqueue_global_styles() {
79
82
*/
80
83
function gutenberg_enqueue_global_styles_custom_css () {
81
84
_deprecated_function ( __FUNCTION__ , 'Gutenberg 17.8.0 ' , 'gutenberg_enqueue_global_styles ' );
82
- if ( ! wp_is_block_theme () ) {
85
+ if ( ! wp_is_block_theme () || is_customize_preview () ) {
83
86
return ;
84
87
}
85
88
You can’t perform that action at this time.
0 commit comments