[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
Tue Dec 22 03:11:29 UTC 2020


#52144: the $term_ids in function wp_queue_posts_for_term_meta_lazyload  is index
array
--------------------------+-----------------------------
 Reporter:  denishua      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.6
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 the $term_ids in function wp_queue_posts_for_term_meta_lazyload is index
 array,


 {{{
 if ( ! isset( $term_ids[ $term->term_id ] ) ) {
 }}}


 should change to

 {{{
 if ( ! in_array( $term->term_id, $term_ids ) ) {
 }}}

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


More information about the wp-trac mailing list