Make WordPress Core

Changeset 18711


Ignore:
Timestamp:
09/19/2011 03:59:52 AM (13 years ago)
Author:
dd32
Message:

Fix wp_list_filter() OR operator. Props kevinB. Fixes #18092

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r18681 r18711  
    32093209
    32103210        if ( ( 'AND' == $operator && $matched == $count )
    3211           || ( 'OR' == $operator && $matched <= $count )
     3211          || ( 'OR' == $operator && $matched > 0 )
    32123212          || ( 'NOT' == $operator && 0 == $matched ) ) {
    32133213            $filtered[$key] = $obj;
Note: See TracChangeset for help on using the changeset viewer.