diff --git a/wp-includes/class-wp-tax-query.php b/wp-includes/class-wp-tax-query.php index 68b12ffbe4..a7a40cf21f 100644 --- a/wp-includes/class-wp-tax-query.php +++ b/wp-includes/class-wp-tax-query.php @@ -556,7 +556,11 @@ class WP_Tax_Query { return; } - $query['terms'] = array_unique( (array) $query['terms'] ); + if ( 'slug' === $query['field'] || 'name' === $query['field'] ) { + $query['terms'] = array_unique( (array) $query['terms'] ); + } else { + $query['terms'] = wp_parse_id_list( $query['terms'] ); + } if ( is_taxonomy_hierarchical( $query['taxonomy'] ) && $query['include_children'] ) { $this->transform_query( $query, 'term_id' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 3da73ea9b8..5e9b1f0e50 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52453'; +$wp_version = '6.0-alpha-52454'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.