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

WordPress Trac noreply at wordpress.org
Sun Dec 31 01:29:22 UTC 2023


#59969: Conditional loading `build_template_part_block_variations` for performance
improvement
-------------------------------------------------+-------------------------
 Reporter:  thekt12                              |       Owner:  thekt12
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.5
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch 2nd-opinion needs-unit-    |     Focuses:
  tests                                          |  performance
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 @joemcgill @Mamaduka @thekt12 I put together my own
 [https://github.com/WordPress/wordpress-develop/pull/5825 PR]. This is
 based on the existing PR, but has more thinking about B/C. I feel like my
 PR is getting close. My PR uses magic getter and issets, to maintain B/C.
 It basically solf deprecated accessing the variations property directly
 and replaces it with `get_variations` method.

 Please take a look in the new year and see what you think.

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


More information about the wp-trac mailing list