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
This commit is contained in:
parent
945d4500b4
commit
56c20818e5
@ -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
Block a user