Skip to content

Commit

Permalink
Remove temporary theme.json in favor of WordPress/gutenberg#45616.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Nov 8, 2022
1 parent f34fe53 commit 6a835a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
10 changes: 2 additions & 8 deletions src/wp-includes/class-wp-theme-json-resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,8 @@ public static function get_core_data() {
return static::$core;
}

// TODO: Generate 'theme-json.php' at build time which returns fully parsed and translation-ready 'theme.json'
// as a PHP associative array.
if ( file_exists( __DIR__ . '/theme-json.php' ) ) {
$config = require __DIR__ . '/theme-json.php';
} else {
$config = static::read_json_file( __DIR__ . '/theme.json' );
$config = static::translate( $config );
}
$config = static::read_json_file( __DIR__ . '/theme.json' );
$config = static::translate( $config );

/**
* Filters the default data provided by WordPress for global styles & settings.
Expand Down
12 changes: 0 additions & 12 deletions src/wp-includes/theme-json.php

This file was deleted.

0 comments on commit 6a835a4

Please sign in to comment.