[wp-trac] [WordPress Trac] #62063: traverse_and_serialize_blocks calls is_callable for each block instance

WordPress Trac noreply at wordpress.org
Tue Sep 17 23:01:23 UTC 2024


#62063: traverse_and_serialize_blocks calls is_callable for each block instance
-------------------------+-----------------------------
 Reporter:  welcher      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:  performance  |
-------------------------+-----------------------------
 In the traverse_and_serialize_blocks function, the second and third
 parameters are checked for null for each block in the loop. This check can
 be done instead once when the function is invoked and cached in variables.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62063>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list