Ticket #16499: 16499.2.diff
File 16499.2.diff, 699 bytes (added by , 14 years ago) |
---|
-
wp-includes/functions.php
3034 3034 * @return array A list of objects or object fields 3035 3035 */ 3036 3036 function wp_filter_object_list( $list, $args = array(), $operator = 'and', $field = false ) { 3037 if ( ! is_array( $list ) ) 3038 return array(); 3039 3037 3040 $list = wp_list_filter( $list, $args, $operator ); 3038 3041 3039 3042 if ( $field ) … … 3057 3060 * @return array 3058 3061 */ 3059 3062 function wp_list_filter( $list, $args = array(), $operator = 'AND' ) { 3063 if ( ! is_array( $list ) ) 3064 return array(); 3065 3060 3066 if ( empty( $args ) ) 3061 3067 return $list; 3062 3068