Changeset 15874
- Timestamp:
- 10/20/2010 07:00:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r15860 r15874 1471 1471 } 1472 1472 1473 $term = $q[$t->query_var];1473 $term = str_replace( ' ', '+', $q[$t->query_var] ); 1474 1474 1475 1475 if ( strpos($term, '+') !== false ) { 1476 $terms = preg_split( '/[+ \s]+/', $term );1476 $terms = preg_split( '/[+]+/', $term ); 1477 1477 foreach ( $terms as $term ) { 1478 1478 $tax_query[] = array_merge( $tax_query_defaults, array( … … 1482 1482 } else { 1483 1483 $tax_query[] = array_merge( $tax_query_defaults, array( 1484 'terms' => preg_split( '/[,\s]+/', $term)1484 'terms' => preg_split( '/[,]+/', $term ) 1485 1485 ) ); 1486 1486 }
Note: See TracChangeset
for help on using the changeset viewer.