diff --git a/lib/global-styles.php b/lib/global-styles.php index a54373288421a4..93b90a6104f699 100644 --- a/lib/global-styles.php +++ b/lib/global-styles.php @@ -53,7 +53,7 @@ function_exists( 'gutenberg_is_edit_site_page' ) && $new_global_styles = array(); - $css_variables = wp_get_global_stylesheet( array( 'variables' ) ); + $css_variables = gutenberg_get_global_stylesheet( array( 'variables' ) ); if ( '' !== $css_variables ) { $new_global_styles[] = array( 'css' => $css_variables, @@ -61,7 +61,7 @@ function_exists( 'gutenberg_is_edit_site_page' ) && ); } - $css_presets = wp_get_global_stylesheet( array( 'presets' ) ); + $css_presets = gutenberg_get_global_stylesheet( array( 'presets' ) ); if ( '' !== $css_presets ) { $new_global_styles[] = array( 'css' => $css_presets, @@ -70,7 +70,7 @@ function_exists( 'gutenberg_is_edit_site_page' ) && } if ( WP_Theme_JSON_Resolver_Gutenberg::theme_has_support() ) { - $css_blocks = wp_get_global_stylesheet( array( 'styles' ) ); + $css_blocks = gutenberg_get_global_stylesheet( array( 'styles' ) ); if ( '' !== $css_blocks ) { $new_global_styles[] = array( 'css' => $css_blocks,