WordPress.org

Make WordPress Core

Ticket #16499: 16499.diff

File 16499.diff, 489 bytes (added by nacin, 7 years ago)
  • wp-includes/functions.php

     
    30343034 * @return array A list of objects or object fields
    30353035 */
    30363036function wp_filter_object_list( $list, $args = array(), $operator = 'and', $field = false ) {
     3037        if ( ! is_array( $list ) )
     3038                return array();
     3039
    30373040        $list = wp_list_filter( $list, $args, $operator );
    30383041
    30393042        if ( $field )