#57815 closed enhancement (fixed)
Performance: move variables to where used in wp_render_layout_support_flag()
| Reported by: | spacedmonkey | Owned by: | spacedmonkey |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.3 |
| Component: | Editor | Version: | |
| Severity: | normal | Keywords: | gutenberg-merge has-patch |
| Cc: | Focuses: | performance |
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 years 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 years ago
@spacedmonkey commented on PR #4213:
3 years ago
#7
Committed.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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