[wp-trac] [WordPress Trac] #57815: Performance: move variables to where used in wp_render_layout_support_flag()
WordPress Trac
noreply at wordpress.org
Mon Feb 27 20:24:35 UTC 2023
#57815: Performance: move variables to where used in
wp_render_layout_support_flag()
--------------------------+-----------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.3
Component: General | Version:
Severity: normal | Keywords: gutenberg-merge
Focuses: performance |
--------------------------+-----------------------------
Improves the performance of `wp_render_layout_support_flag()` function by
moving variables to where each is used.
If a `return` happens before the variable is needed, this change avoids
unnecessary processing and memory.
Reference:
* [https://github.com/WordPress/gutenberg/pull/48003 Gutenberg PR 48003]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57815>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list