[wp-trac] [WordPress Trac] #53988: remove duplicate code in wp_list_filter()
WordPress Trac
noreply at wordpress.org
Tue Aug 24 15:03:41 UTC 2021
#53988: remove duplicate code in wp_list_filter()
-------------------------+---------------------
Reporter: pbearne | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.9
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+---------------------
Comment (by SergeyBiryukov):
The unit tests for `wp_list_filter()` [https://github.com/WordPress
/wordpress-develop/pull/1615/checks?check_run_id=3405534418#step:20:266
currently fail with this PR]:
{{{
There was 1 failure:
1) Tests_Functions_wpListUtil::test_wp_list_filter with data set "invalid
operator" (array(stdClass Object (...), stdClass Object (...)),
array('bar'), 'XOR', array())
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
+ 0 => stdClass Object (...)
+ 1 => stdClass Object (...)
)
/var/www/tests/phpunit/includes/abstract-testcase.php:813
/var/www/tests/phpunit/tests/functions/wpListUtil.php:373
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53988#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list