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:
parent
4b38d0833e
commit
085ba95a60
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue