Skip to content

Commit

Permalink
Remove the experimental prefix and rename theme.json files (#33925)
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolosw authored Aug 6, 2021
1 parent ac9ab86 commit 10f2ec1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
# PHP
/lib @timothybjacobs @spacedmonkey
/lib/global-styles.php @timothybjabocs @spacedmonkey @nosolosw
/lib/experimental-default-theme.json @timothybjabocs @spacedmonkey @nosolosw
/lib/theme.json @timothybjabocs @spacedmonkey @nosolosw
/lib/class-wp-theme-json-gutenberg.php @timothybjabocs @spacedmonkey @nosolosw
/lib/class-wp-theme-json-resolver-gutenberg.php @timothybjabocs @spacedmonkey @nosolosw
/phpunit/class-wp-theme-json-test.php @nosolosw
Expand Down
4 changes: 2 additions & 2 deletions lib/class-wp-theme-json-resolver-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private static function extract_paths_to_translate( $i18n_partial, $current_path
*/
public static function get_fields_to_translate() {
if ( null === self::$theme_json_i18n ) {
$file_structure = self::read_json_file( __DIR__ . '/experimental-i18n-theme.json' );
$file_structure = self::read_json_file( __DIR__ . '/theme-i18n.json' );
self::$theme_json_i18n = self::extract_paths_to_translate( $file_structure );
}
return self::$theme_json_i18n;
Expand Down Expand Up @@ -247,7 +247,7 @@ public static function get_core_data() {
return self::$core;
}

$config = self::read_json_file( __DIR__ . '/experimental-default-theme.json' );
$config = self::read_json_file( __DIR__ . '/theme.json' );
$config = self::translate( $config );
self::$core = new WP_Theme_JSON_Gutenberg( $config, 'core' );

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 10f2ec1

Please sign in to comment.