From cad0e84155868652c2a8e1e260abe6403cffab3f Mon Sep 17 00:00:00 2001 From: ntsekouras Date: Thu, 30 Jun 2022 14:32:55 +0300 Subject: [PATCH] tweaks --- .../class-wp-theme-json-resolver-6-0.php | 17 ----------------- .../class-wp-theme-json-resolver-6-1.php | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/lib/compat/wordpress-6.0/class-wp-theme-json-resolver-6-0.php b/lib/compat/wordpress-6.0/class-wp-theme-json-resolver-6-0.php index 13e00171ce082..b85e8e335037a 100644 --- a/lib/compat/wordpress-6.0/class-wp-theme-json-resolver-6-0.php +++ b/lib/compat/wordpress-6.0/class-wp-theme-json-resolver-6-0.php @@ -38,23 +38,6 @@ protected static function translate( $theme_json, $domain = 'default' ) { return translate_settings_using_i18n_schema( static::$i18n_schema, $theme_json, $domain ); } - /** - * Return core's origin config. - * - * @return WP_Theme_JSON_Gutenberg Entity that holds core data. - */ - public static function get_core_data() { - if ( null !== static::$core ) { - return static::$core; - } - - $config = static::read_json_file( __DIR__ . '/theme.json' ); - $config = static::translate( $config ); - static::$core = new WP_Theme_JSON_Gutenberg( $config, 'default' ); - - return static::$core; - } - /** * Returns the theme's data. * diff --git a/lib/compat/wordpress-6.1/class-wp-theme-json-resolver-6-1.php b/lib/compat/wordpress-6.1/class-wp-theme-json-resolver-6-1.php index 310889c04e26f..f704daaffafb1 100644 --- a/lib/compat/wordpress-6.1/class-wp-theme-json-resolver-6-1.php +++ b/lib/compat/wordpress-6.1/class-wp-theme-json-resolver-6-1.php @@ -23,7 +23,7 @@ class WP_Theme_JSON_Resolver_6_1 extends WP_Theme_JSON_Resolver_6_0 { * @since 5.8.0 * @var WP_Theme_JSON */ - public static $core = null; + protected static $core = null; /** * Given a theme.json structure modifies it in place