[wp-trac] [WordPress Trac] #59969: Conditional loading `build_template_part_block_variations` for performance improvement

WordPress Trac noreply at wordpress.org
Wed Nov 29 19:02:52 UTC 2023


#59969: Conditional loading `build_template_part_block_variations` for performance
improvement
--------------------------+------------------------------
 Reporter:  thekt12       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  performance
--------------------------+------------------------------

Comment (by thekt12):

 @joemcgill one of the reasons to stick to the current PR instead of lazy
 loading the version @swissspidy tried to implement here
 https://github.com/WordPress/wordpress-develop/pull/4857/files
 - 'block_type_metadata_settings' filter from
 `register_block_type_from_metadata()` [https://github.com/WordPress
 /wordpress-develop/blob/4cee935825612180fe357cbe41f4453c51d873f6/src/wp-
 includes/blocks.php#L579 line 579] won't get variation information any
 more.
 (But, I am not sure what the impact would be)

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


More information about the wp-trac mailing list