Make WordPress Core

Changeset 35950


Ignore:
Timestamp:
12/15/2015 07:49:43 PM (8 years ago)
Author:
ocean90
Message:

Revert [35949].

Passing an object to wp_list_pluck() throws also a fatal error, see https://3v4l.org/9YsaD.

See #35087.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions/listFilter.php

    r35949 r35950  
    111111    }
    112112
    113     /**
    114      * When not being passed an array, the function should throw a warning.
    115      *
    116      * @ticket 35087
    117      * @expectedException PHPUnit_Framework_Error_Warning
    118      */
    119     function test_wp_list_pluck_non_array() {
    120         $object      = new stdClass();
    121         $object->foo = 'abc';
    122         $object->bar = 'def';
    123         wp_list_pluck( $object, 'test' );
    124     }
    125 
    126113    function test_filter_object_list_nested_array_and() {
    127114        $list = wp_filter_object_list( $this->object_list, array( 'field4' => array( 'blue' ) ), 'AND' );
Note: See TracChangeset for help on using the changeset viewer.