Changeset 18606
- Timestamp:
- 08/25/2011 07:50:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r18602 r18606 3199 3199 3200 3200 foreach ( $list as $key => $obj ) { 3201 $matched = count( array_intersect_assoc( (array) $obj, $args ) ); 3201 $to_match = (array) $obj; 3202 3203 $matched = 0; 3204 foreach ( $args as $m_key => $m_value ) { 3205 if ( $m_value == $to_match[ $m_key ] ) 3206 $matched++; 3207 } 3208 3202 3209 if ( ( 'AND' == $operator && $matched == $count ) 3203 3210 || ( 'OR' == $operator && $matched <= $count )
Note: See TracChangeset
for help on using the changeset viewer.