mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Editor: Backport hooks to filter theme.json data from Gutenberg to 6.1.
This changeset ports the work done in Gutenberg (released in 14.1) to add hooks to filter the `theme.json` data. Specifically, it adds the following filters: `theme_json_default`, `theme_json_blocks`, `theme_json_theme`, and `theme_json_user`. For more details, see the following Gutenberg pull requests: - [https://github.com/WordPress/gutenberg/pull/44015 gutenberg#44015]: Make global styles data filterable - [https://github.com/WordPress/gutenberg/pull/44109 gutenberg#44109]: Prepare `WP_Theme_JSON_Data` class for backporting - [https://github.com/WordPress/gutenberg/pull/44159 gutenberg#44159]: Update hook's names from `global_styles_*` to `theme_json_*` Props oandregal, czapla, gziolo, bernhard-reiter. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54251 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -172,6 +172,7 @@ require ABSPATH . WPINC . '/class-wp-date-query.php';
|
||||
require ABSPATH . WPINC . '/theme.php';
|
||||
require ABSPATH . WPINC . '/class-wp-theme.php';
|
||||
require ABSPATH . WPINC . '/class-wp-theme-json-schema.php';
|
||||
require ABSPATH . WPINC . '/class-wp-theme-json-data.php';
|
||||
require ABSPATH . WPINC . '/class-wp-theme-json.php';
|
||||
require ABSPATH . WPINC . '/class-wp-theme-json-resolver.php';
|
||||
require ABSPATH . WPINC . '/global-styles-and-settings.php';
|
||||
|
||||
Reference in New Issue
Block a user