Merge pull request #3925 from Automattic/fix/theme-json-resolver-class

BCB: fix theme json resolver class name
This commit is contained in:
Ben Dwyer 2021-05-25 09:42:33 +01:00 committed by GitHub
commit 744980874f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,11 +60,11 @@ add_action( 'wp_enqueue_scripts', 'blank_canvas_blocks_scripts' );
*/
function blank_canvas_blocks_fonts_url() {
if ( ! class_exists( 'WP_Theme_JSON_Resolver' ) ) {
if ( ! class_exists( 'WP_Theme_JSON_Resolver_Gutenberg' ) ) {
return '';
}
$theme_data = WP_Theme_JSON_Resolver::get_merged_data()->get_settings();
$theme_data = WP_Theme_JSON_Resolver_Gutenberg::get_merged_data()->get_settings();
if ( empty( $theme_data ) || empty( $theme_data['custom'] ) ) {
return '';
}