From 56c20818e58a0257290f3375c6f29d84e6c3d73f Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Mon, 19 Sep 2011 03:59:52 +0000 Subject: [PATCH] Fix wp_list_filter() OR operator. Props kevinB. Fixes #18092 git-svn-id: https://develop.svn.wordpress.org/trunk@18711 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index ab208f9a96..06876b2083 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -3208,7 +3208,7 @@ function wp_list_filter( $list, $args = array(), $operator = 'AND' ) { } if ( ( 'AND' == $operator && $matched == $count ) - || ( 'OR' == $operator && $matched <= $count ) + || ( 'OR' == $operator && $matched > 0 ) || ( 'NOT' == $operator && 0 == $matched ) ) { $filtered[$key] = $obj; }