Changeset 52477 for branches/4.6/src/wp-includes/class-wp-tax-query.php
- Timestamp:
- 01/06/2022 06:16:25 PM (3 years ago)
- Location:
- branches/4.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.6
- Property svn:mergeinfo changed
/trunk merged: 52454-52457
- Property svn:mergeinfo changed
-
branches/4.6/src/wp-includes/class-wp-tax-query.php
r38079 r52477 544 544 // The sibling must both have compatible operator to share its alias. 545 545 if ( in_array( strtoupper( $sibling['operator'] ), $compatible_operators ) ) { 546 $alias = $sibling['alias'];546 $alias = preg_replace( '/\W/', '_', $sibling['alias'] ); 547 547 break; 548 548 } … … 574 574 } 575 575 576 $query['terms'] = array_unique( (array) $query['terms'] ); 576 if ( 'slug' === $query['field'] || 'name' === $query['field'] ) { 577 $query['terms'] = array_unique( (array) $query['terms'] ); 578 } else { 579 $query['terms'] = wp_parse_id_list( $query['terms'] ); 580 } 577 581 578 582 if ( is_taxonomy_hierarchical( $query['taxonomy'] ) && $query['include_children'] ) {
Note: See TracChangeset
for help on using the changeset viewer.