[wp-trac] [WordPress Trac] #56796: Naming of filters in `class-wp-theme-json-resolver.php` (`theme_json_*`)
WordPress Trac
noreply at wordpress.org
Tue Oct 11 20:06:31 UTC 2022
#56796: Naming of filters in `class-wp-theme-json-resolver.php` (`theme_json_*`)
------------------------------+-----------------------------
Reporter: kebbet | Owner: hellofromTonya
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1
Component: Editor | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------------
Changes (by hellofromTonya):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"54501" 54501]:
{{{
#!CommitTicketReference repository="" revision="54501"
Editor: Rename new `theme_json_{$context}` filters.
The newly introduced filters are renamed to use the
`wp_theme_json_data{$context}` structure:
* `theme_json_default` renamed to `wp_theme_json_data_default`
* `theme_json_theme` renamed to `wp_theme_json_data_theme`
* `theme_json_blocks` renamed to `wp_theme_json_data_blocks`
* `theme_json_user` renamed to `wp_theme_json_data_user`
The following new filter gets the `wp_` prefix added:
* `theme_json_get_style_nodes` renamed to `wp_theme_json_get_style_nodes`
Follow-up to [56467], [54183], [54118].
Props kebbet, desrosj, mukesh27, ocean90, sergeybiryukov, davidbaumwald,
hellofromTonya.
Fixes #56796.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56796#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list