[wp-trac] [WordPress Trac] #52144: the $term_ids in function wp_queue_posts_for_term_meta_lazyload is index array

WordPress Trac noreply at wordpress.org
Thu Dec 24 11:19:45 UTC 2020


#52144: the $term_ids in function wp_queue_posts_for_term_meta_lazyload  is index
array
-------------------------------------+-------------------------------------
 Reporter:  denishua                 |       Owner:  SergeyBiryukov
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  5.7
Component:  Posts, Post Types        |     Version:  4.5
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:  administration,
  needs-unit-tests                   |  coding-standards
-------------------------------------+-------------------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"49905" 49905]:
 {{{
 #!CommitTicketReference repository="" revision="49905"
 Posts, Post Types: Correct the check for term IDs to be queued for lazy-
 loading term meta.

 This ensures that the `$term_ids` array in
 `wp_queue_posts_for_term_meta_lazyload()` (an indexed array not keyed by
 ID) does not contain duplicate values.

 Props denishua, akabarikalpesh.
 Fixes #52144.
 }}}

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


More information about the wp-trac mailing list