Skip to content

Commit

Permalink
Fix for WordPress 5.9: gutenberg_get_global_stylesheet should call th…
Browse files Browse the repository at this point in the history
…e Gutenberg classes
  • Loading branch information
oandregal committed Feb 17, 2022
1 parent f20fa0c commit ca41acf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/compat/wordpress-5.9/get-global-styles-and-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ function gutenberg_get_global_stylesheet( $types = array() ) {
return $cached;
}
}
$tree = WP_Theme_JSON_Resolver::get_merged_data();
$supports_theme_json = WP_Theme_JSON_Resolver::theme_has_support();
$tree = WP_Theme_JSON_Resolver_Gutenberg::get_merged_data();
$supports_theme_json = WP_Theme_JSON_Resolver_Gutenberg::theme_has_support();
if ( empty( $types ) && ! $supports_theme_json ) {
$types = array( 'variables', 'presets' );
} elseif ( empty( $types ) ) {
Expand Down

0 comments on commit ca41acf

Please sign in to comment.