Blockbase: Rename Gutenberg functions (#5248)

This commit is contained in:
Ben Dwyer 2021-12-22 23:20:37 +00:00 committed by GitHub
parent b172d413cc
commit 665a08d8f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -82,7 +82,7 @@ class GlobalStylesColorCustomizer {
$user_color_palette = $theme_json['settings']['color']['palette']['user'];
}
// End Gutenberg < 12.1 compatibility patch
// Combine theme settings with user settings.
foreach ( $combined_color_palette as $key => $palette_item ) {
//make theme color value the default
@ -162,7 +162,7 @@ class GlobalStylesColorCustomizer {
$this->update_user_color_palette( $wp_customize );
// Get the user's theme.json from the CPT.
$user_custom_post_type_id = WP_Theme_JSON_Resolver_Gutenberg::get_user_custom_post_type_id();
$user_custom_post_type_id = WP_Theme_JSON_Resolver_Gutenberg::get_user_global_styles_post_id();
$user_theme_json_post = get_post( $user_custom_post_type_id );
$user_theme_json_post_content = json_decode( $user_theme_json_post->post_content );

View file

@ -505,7 +505,7 @@ class GlobalStylesFontsCustomizer {
$heading_font_family_variable = 'var(--wp--preset--font-family--' . $heading_setting['slug'] . ')';
// Get the user's theme.json from the CPT.
$user_custom_post_type_id = WP_Theme_JSON_Resolver_Gutenberg::get_user_custom_post_type_id();
$user_custom_post_type_id = WP_Theme_JSON_Resolver_Gutenberg::get_user_global_styles_post_id();
$user_theme_json_post = get_post( $user_custom_post_type_id );
$user_theme_json_post_content = json_decode( $user_theme_json_post->post_content );