Skip to content

Commit b14c869

Browse files
committed
Bring back changes from 61262
1 parent 818a849 commit b14c869

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/class-wp-theme-json-resolver-gutenberg.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -540,10 +540,8 @@ public static function get_user_data() {
540540
}
541541

542542
/** This filter is documented in wp-includes/class-wp-theme-json-resolver.php */
543-
$theme_json = apply_filters( 'wp_theme_json_data_user', new WP_Theme_JSON_Data_Gutenberg( $config, 'custom' ) );
544-
$config = $theme_json->get_data();
545-
546-
static::$user = new WP_Theme_JSON_Gutenberg( $config, 'custom' );
543+
$theme_json = apply_filters( 'wp_theme_json_data_user', new WP_Theme_JSON_Data_Gutenberg( $config, 'custom' ) );
544+
static::$user = $theme_json->get_theme_json();
547545

548546
return static::$user;
549547
}

0 commit comments

Comments
 (0)