WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #37721, comment 7


Ignore:
Timestamp:
08/24/2016 04:05:27 AM (5 years ago)
Author:
rpayne7264
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37721, comment 7

    initial v1  
    1 As an additional precaution, you may want to add a check at the entrance of wp_list_pluck() to ensure that the $list param is, indeed, and array.
     1As an additional precaution, you may want to add a check at the entrance of wp_list_pluck() to ensure that the $list param is, indeed, an array.
    22
    33This is how I would code it: