Ticket #16706: 16706.split.diff
File 16706.split.diff, 802 bytes (added by , 14 years ago) |
---|
-
wp-includes/query.php
1666 1666 1667 1667 $term = $q[$t->query_var]; 1668 1668 1669 if ( strpos($term, '+') !== false ) { 1670 $terms = preg_split( '/[+]+/', $term ); 1671 foreach ( $terms as $term ) { 1672 $tax_query[] = array_merge( $tax_query_defaults, array( 1673 'terms' => array( $term ) 1674 ) ); 1675 } 1669 if ( preg_match( '/[+ ]+/', $term ) ) { 1670 $tax_query[] = array_merge( $tax_query_defaults, array( 1671 'terms' => preg_split( '/[+ ]+/', $term ), 1672 'operator' => 'AND' 1673 ) ); 1676 1674 } else { 1677 1675 $tax_query[] = array_merge( $tax_query_defaults, array( 1678 1676 'terms' => preg_split( '/[,]+/', $term )