[wp-trac] [WordPress Trac] #16895: wp_list_pluck cannot be used with arrays of references

WordPress Trac noreply at wordpress.org
Thu Jan 18 05:14:30 UTC 2018


#16895: wp_list_pluck cannot be used with arrays of references
----------------------------------------+-----------------------
 Reporter:  dd32                        |       Owner:  dd32
     Type:  enhancement                 |      Status:  accepted
 Priority:  normal                      |   Milestone:  5.0
Component:  General                     |     Version:  3.1
 Severity:  normal                      |  Resolution:
 Keywords:  needs-refresh dev-feedback  |     Focuses:
----------------------------------------+-----------------------

Comment (by dd32):

 In [changeset:"42526"]:
 {{{
 #!CommitTicketReference repository="" revision="42526"
 Tests: Remove redundant `assertEquals()` calls in listFilter tests.

 As these tests are already validating that two arrays match, checking that
 the counts also match before is redundant and makes it harder to debug
 when the test fails.

 See #16895
 }}}

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


More information about the wp-trac mailing list