Skip to content
Prev Previous commit
Next Next commit
Update lib/compat/wordpress-6.2/class-wp-theme-json-resolver-6-2.php
Co-authored-by: André <583546+oandregal@users.noreply.github.com>
  • Loading branch information
spacedmonkey and oandregal authored Dec 1, 2022
commit 725db895b6a037cf8d0f6501a13825751b8289e0
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static function get_theme_data( $deprecated = array(), $settings = array(
* and merge the static::$theme upon that.
*/
$theme_support_data = WP_Theme_JSON_Gutenberg::get_from_editor_settings( gutenberg_get_block_theme_supports() );
if ( ! wp_theme_has_support() ) {
if ( ! wp_theme_has_theme_json() ) {
if ( ! isset( $theme_support_data['settings']['color'] ) ) {
$theme_support_data['settings']['color'] = array();
}
Expand Down