Blockbase: Rename Gutenberg functions (#5248)
This commit is contained in:
parent
b172d413cc
commit
665a08d8f5
2 changed files with 3 additions and 3 deletions
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue