Skip to content

Commit

Permalink
Fix the tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwilsoncc committed Oct 4, 2024
1 parent 06cc244 commit 0c49be0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/wp-includes/class-wp-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -1299,12 +1299,9 @@ public function parse_tax_query( &$q ) {
}

// If query string 'tag' is array, implode it.
if ( ! is_array( $q['tag'] ) ) {
$q['tag'] = explode( ',', $q['tag'] );
$q['tag'] = array_map( 'trim', $q['tag'] );
if ( is_array( $q['tag'] ) ) {
$q['tag'] = implode( ',', $q['tag'] );
}
sort( $q['tag'] );
$q['tag'] = implode( ',', $q['tag'] );

// Tag stuff.

Expand Down

0 comments on commit 0c49be0

Please sign in to comment.