Ticket #16137: 16137.patch
| File 16137.patch, 668 bytes (added by SergeyBiryukov, 22 months ago) |
|---|
-
wp-includes/functions.php
3180 3180 $filtered = array(); 3181 3181 3182 3182 foreach ( $list as $key => $obj ) { 3183 $matched = count( array_intersect_assoc( (array) $obj, $args ) ); 3183 $to_match = (array) $obj; 3184 3185 $matched = 0; 3186 foreach ( $args as $m_key => $m_value ) { 3187 if ( $m_value == $to_match[$m_key] ) 3188 $matched++; 3189 } 3190 3184 3191 if ( ( 'AND' == $operator && $matched == $count ) 3185 3192 || ( 'OR' == $operator && $matched <= $count ) 3186 3193 || ( 'NOT' == $operator && 0 == $matched ) ) {
