Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove temporary theme.json in favor of WordPress/gutenberg#45616.
  • Loading branch information
felixarntz committed Nov 8, 2022
commit 6a835a4084b4f990cfe30724c5afa1185d09aeac
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.