Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Jul 1, 2022
1 parent 0449901 commit cad0e84
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
17 changes: 0 additions & 17 deletions lib/compat/wordpress-6.0/class-wp-theme-json-resolver-6-0.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cad0e84

Please sign in to comment.