[wp-trac] [WordPress Trac] #34047: Split up `wp_lazyload_term_meta()`; check `$check` before lazyloading

WordPress Trac noreply at wordpress.org
Tue Sep 29 21:59:46 UTC 2015


#34047: Split up `wp_lazyload_term_meta()`; check `$check` before lazyloading
-------------------------+---------------------------
 Reporter:  dlh          |       Owner:  boonebgorges
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  4.4
Component:  Taxonomy     |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+---------------------------

Comment (by boonebgorges):

 In [changeset:"34704"]:
 {{{
 #!CommitTicketReference repository="" revision="34704"
 Improve lazyloading of term metadata in `WP_Query` loops.

 [34529] introduced lazyloading for the metadata belonging to terms
 matching
 posts in the main `WP_Query`. The current changeset improves this
 technique
 in the following ways:

 * Term meta lazyloading is now performed on the results of all `WP_Query`
 queries, not just the main query.
 * Fewer global variable touches and greater encapsulation.
 * The logic for looping through posts to identify terms is now only
 performed once per `WP_Query`.

 Props dlh, boonebgorges.
 See #34047.
 }}}

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


More information about the wp-trac mailing list