Make WordPress Core

Ticket #16499: 16499.2.diff

File 16499.2.diff, 699 bytes (added by nacin, 14 years ago)

Checks in both spots.

  • 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 )
     
    30573060 * @return array
    30583061 */
    30593062function wp_list_filter( $list, $args = array(), $operator = 'AND' ) {
     3063        if ( ! is_array( $list ) )
     3064                return array();
     3065
    30603066        if ( empty( $args ) )
    30613067                return $list;
    30623068