Changeset 52481 for branches/4.2/src/wp-includes/taxonomy.php
- Timestamp:
- 01/06/2022 06:19:36 PM (4 years ago)
- Location:
- branches/4.2
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/taxonomy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2
- Property svn:mergeinfo changed
/trunk merged: 52454-52457
- Property svn:mergeinfo changed
-
branches/4.2/src/wp-includes/taxonomy.php
r37137 r52481 1156 1156 // The sibling must both have compatible operator to share its alias. 1157 1157 if ( in_array( strtoupper( $sibling['operator'] ), $compatible_operators ) ) { 1158 $alias = $sibling['alias'];1158 $alias = preg_replace( '/\W/', '_', $sibling['alias'] ); 1159 1159 break; 1160 1160 } … … 1186 1186 } 1187 1187 1188 $query['terms'] = array_unique( (array) $query['terms'] ); 1188 if ( 'slug' === $query['field'] || 'name' === $query['field'] ) { 1189 $query['terms'] = array_unique( (array) $query['terms'] ); 1190 } else { 1191 $query['terms'] = wp_parse_id_list( $query['terms'] ); 1192 } 1189 1193 1190 1194 if ( is_taxonomy_hierarchical( $query['taxonomy'] ) && $query['include_children'] ) {
Note: See TracChangeset
for help on using the changeset viewer.