[wp-trac] [WordPress Trac] #62317: Optimize "WP_Style_Engine::parse_block_styles()" by reducing unnecessary "array_merge" calls
WordPress Trac
noreply at wordpress.org
Wed Nov 20 21:27:39 UTC 2024
#62317: Optimize "WP_Style_Engine::parse_block_styles()" by reducing unnecessary
"array_merge" calls
------------------------------+--------------------------
Reporter: mukesh27 | Owner: mukesh27
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.8
Component: Editor | Version: 6.1
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: performance
------------------------------+--------------------------
Changes (by joemcgill):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"59442" 59442]:
{{{
#!CommitTicketReference repository="" revision="59442"
Editor: Avoid unnecessary array_merge in
WP_Style_Engine::parse_block_styles().
This adds an `! empty()` check for classnames and declarations to avoid
calling array_merge() with an empty value.
Props mukesh27, ramonopoly, aaronrobertshaw.
Fixes #62317.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62317#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list