Changeset 52480 for branches/4.3/src/wp-includes/taxonomy.php
- Timestamp:
- 01/06/2022 06:19:09 PM (3 years ago)
- Location:
- branches/4.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3
- Property svn:mergeinfo changed
/trunk merged: 52454-52457
- Property svn:mergeinfo changed
-
branches/4.3/src/wp-includes/taxonomy.php
r37136 r52480 1187 1187 // The sibling must both have compatible operator to share its alias. 1188 1188 if ( in_array( strtoupper( $sibling['operator'] ), $compatible_operators ) ) { 1189 $alias = $sibling['alias'];1189 $alias = preg_replace( '/\W/', '_', $sibling['alias'] ); 1190 1190 break; 1191 1191 } … … 1217 1217 } 1218 1218 1219 $query['terms'] = array_unique( (array) $query['terms'] ); 1219 if ( 'slug' === $query['field'] || 'name' === $query['field'] ) { 1220 $query['terms'] = array_unique( (array) $query['terms'] ); 1221 } else { 1222 $query['terms'] = wp_parse_id_list( $query['terms'] ); 1223 } 1220 1224 1221 1225 if ( is_taxonomy_hierarchical( $query['taxonomy'] ) && $query['include_children'] ) {
Note: See TracChangeset
for help on using the changeset viewer.