Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #56650


Ignore:
Timestamp:
09/28/2022 07:39:32 PM (3 years ago)
Author:
afragen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56650 – Description

    initial v3  
    1 `$field` is checked to see if it is an object, but the `else` doesn't check to see if `$field` is an array.
     1`$value` is checked to see if it is an object, but the `else` doesn't check to see if `$value` is an array.
    22
    3 I've found instances where `null` is passed to `WP_List_Util::pluck( $field = null )` resulting in an error. Some additional error checking in the `else` should solve this.
     3I've found instances where `null` is passed to `WP_List_Util::pluck()` resulting in an error. Some additional error checking in the `else` should solve this.