[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
Thu May 23 16:12:47 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: closed
Priority: normal | Milestone: 6.6
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: performance
------------------------------+--------------------------
Changes (by joemcgill):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"58185" 58185]:
{{{
#!CommitTicketReference repository="" revision="58185"
Editor: Remove additional calls to `WP_Theme_JSON::_construct`.
This improves performance of the `WP_Theme_JSON_Resolver` class by
avoiding redundant construction of `WP_Theme_JSON` objects for each
origin.
Props thekt12, joemcgill, swissspidy, audrasjb, oandregal.
Fixes #61112.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61112#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list