mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user