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
This commit is contained in:
dd32 2011-09-19 03:59:52 +00:00
parent 4b38d0833e
commit 085ba95a60
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}