Skip to content
Closed
Changes from 2 commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/wp-includes/class-wp-theme-json-resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,13 @@ public static function get_user_data_from_wp_global_styles( $theme, $create_post
$theme = wp_get_theme();
}

// Bail early if the theme does not support a theme.json. Since WP_Theme_JSON_Resolver::theme_has_support()
// only supports the active theme, the extra condition for whether $theme is the active theme is present here.
/*
* Bail early if the theme does not support a theme.json.
*
* Since WP_Theme_JSON_Resolver::theme_has_support() only supports the active
* theme, the extra condition for whether $theme is the active theme is
* present here.
*/
if ( $theme->get_stylesheet() === get_stylesheet() && ! static::theme_has_support() ) {
return array();
}
Expand Down