[wp-trac] [WordPress Trac] #59774: Undefined array key when using wp_list_pluck function

WordPress Trac noreply at wordpress.org
Tue Feb 27 22:36:24 UTC 2024


#59774: Undefined array key when using wp_list_pluck function
-------------------------------------------------+-------------------------
 Reporter:  iamarunchaitanyajami                 |       Owner:
                                                 |  hellofromTonya
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.5
Component:  General                              |     Version:  5.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests changes-    |     Focuses:
  requested                                      |
-------------------------------------------------+-------------------------

Comment (by hellofromTonya):

 In [changeset:"57732" 57732]:
 {{{
 #!CommitTicketReference repository="" revision="57732"
 General: Revert r57698 for WP_List_Util::pluck().

 r57698 caused a regression for arrays of objects which have magic methods
 and dynamic properties. A fix is identified.

 However, a deeper dive discovered additional scenarios which will require
 a different fix.

 Reverting gives more time for resolving these scenarios and more soak time
 to discover if there are others.

 Props dd32, jamescollins, swissspidy.
 See #59774.
 }}}

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


More information about the wp-trac mailing list