[wp-trac] [WordPress Trac] #57136: wp_list_pluck's key argument not working correctly when its zero

WordPress Trac noreply at wordpress.org
Sat Nov 19 13:24:48 UTC 2022


#57136: wp_list_pluck's key argument not working correctly when its zero
-------------------------------------+------------------------------
 Reporter:  dgwatkins                |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------------
Changes (by riccardodicurti):

 * keywords:  has-patch => has-patch needs-testing
 * version:   => trunk


Comment:

 Hi @afragen, I tested your PR and unfortunately it doesn't solve the
 problem reported in this ticket.

 Ticket #56650

 As you can see, the output is like the one reported in this ticket.

 [[Image(https://core.trac.wordpress.org/attachment/ticket/57136/Screenshot%202022-11-19%20at%2014.16.56.png)]]

 Ticket #57136

 Using this patch the output is correct.

 [[Image(https://core.trac.wordpress.org/attachment/ticket/57136/Screenshot%202022-11-19%20at%2014.19.07.png)]]

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


More information about the wp-trac mailing list