#57815 closed enhancement (fixed)
Performance: move variables to where used in wp_render_layout_support_flag()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Editor | Keywords: | gutenberg-merge has-patch |
Focuses: | performance | Cc: |
Description
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:
Change History (7)
This ticket was mentioned in PR #4213 on WordPress/wordpress-develop by @spacedmonkey.
3 months ago
#4
- Keywords has-patch added
Trac ticket: https://core.trac.wordpress.org/ticket/57815
This ticket was mentioned in Slack in #core-committers by spacedmonkey. View the logs.
3 months ago
@spacedmonkey commented on PR #4213:
3 months ago
#7
Committed.
Note: See
TracTickets for help on using
tickets.
This ticket was discussed in the recent performance bug scrub.
The GB PR already merged and just needs to back port it for core.
Props to @joemcgill