From 085ba95a60cc95cc7680d82b023d71f576ee276d Mon Sep 17 00:00:00 2001 From: dd32 Date: Mon, 19 Sep 2011 03:59:52 +0000 Subject: [PATCH] Fix wp_list_filter() OR operator. Props kevinB. Fixes #18092 git-svn-id: http://svn.automattic.com/wordpress/trunk@18711 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 ab208f9a9..06876b208 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; }