Make WordPress Core

Ticket #43025: 43025.diff

File 43025.diff, 503 bytes (added by jarednova, 7 years ago)

Proposed patch

  • wp-includes/functions.php

    diff --git a/wp-includes/functions.php b/wp-includes/functions.php
    index 9b5f292..398249b 100644
    a b function wp_filter_object_list( $list, $args = array(), $operator = 'and', $fiel 
    37563756 * @return array Array of found values.
    37573757 */
    37583758function wp_list_filter( $list, $args = array(), $operator = 'AND' ) {
    3759         if ( ! is_array( $list ) ) {
     3759        if ( ! is_array( $list ) && ! is_a( $list, 'Traversable' ) ) {
    37603760                return array();
    37613761        }
    37623762