[wp-trac] [WordPress Trac] #57815: Performance: move variables to where used in wp_render_layout_support_flag()

WordPress Trac noreply at wordpress.org
Mon Mar 13 16:30:24 UTC 2023


#57815: Performance: move variables to where used in
wp_render_layout_support_flag()
---------------------------------------+---------------------------
 Reporter:  spacedmonkey               |       Owner:  spacedmonkey
     Type:  enhancement                |      Status:  closed
 Priority:  normal                     |   Milestone:  6.3
Component:  Editor                     |     Version:
 Severity:  normal                     |  Resolution:  fixed
 Keywords:  gutenberg-merge has-patch  |     Focuses:  performance
---------------------------------------+---------------------------
Changes (by spacedmonkey):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55541" 55541]:
 {{{
 #!CommitTicketReference repository="" revision="55541"
 Editor: Move variables to where used in wp_render_layout_support_flag.

 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.

 Props spacedmonkey, hellofromTonya, mukesh27.
 Fixes #57815.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57815#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list