Skip to content

Commit

Permalink
Updated global styles references to wp_get_global_stylesheet to use c…
Browse files Browse the repository at this point in the history
…ompat/6.0 version (gutenberg_get_global_stylesheet)
  • Loading branch information
ramonjd committed Feb 17, 2022
1 parent 0a2caca commit e598999
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/global-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ 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,
'__unstableType' => 'presets',
);
}

$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,
Expand All @@ -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,
Expand Down

0 comments on commit e598999

Please sign in to comment.