Skip to content

Commit

Permalink
use WP_Theme_JSON_Gutenberg
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Jan 21, 2022
1 parent d1155e2 commit db7d205
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function get_theme_items( $request ) {
foreach ( $nested_html_files as $path => $file ) {
$decoded_file = wp_json_file_decode( $path, array( 'associative' => true ) );
if ( is_array( $decoded_file ) ) {
$variations[] = ( new WP_Theme_JSON( $decoded_file ) )->get_raw_data();
$variations[] = ( new WP_Theme_JSON_Gutenberg( $decoded_file ) )->get_raw_data();
}
}
}
Expand Down

0 comments on commit db7d205

Please sign in to comment.