[wp-trac] [WordPress Trac] #61112: Avoid re-constructing `WP_Theme_JSON` object from raw theme_json, instead use `WP_Theme_JSON` object inside `WP_Theme_JSON_data`

WordPress Trac noreply at wordpress.org
Mon Jun 3 18:47:03 UTC 2024


#61112: Avoid re-constructing `WP_Theme_JSON` object from raw theme_json, instead
use `WP_Theme_JSON` object inside `WP_Theme_JSON_data`
--------------------------+--------------------------
 Reporter:  thekt12       |       Owner:  thekt12
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  6.6
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  performance
--------------------------+--------------------------

Comment (by joemcgill):

 Thanks @ryelle. Given that we currently have cases where a plugin is using
 the filter to return a `WP_Theme_JSON_Data_Gutenberg` object that may not
 be fully compatible with changes in core, I think we should at least add
 the safety check for now.

 I'll open a new Gutenberg ticket to address the larger architectural
 concerns for the future.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61112#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list