Make WordPress Core

Opened 4 months ago

#60269 new defect (bug)

URL parameter filtering with 'tag' parameter

Reported by: harolair's profile harolair Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords:
Focuses: Cc:


Specifically why is the tag url filtering locked behind this check for $this->query_vars_changed. Seems like this could be removed from the condition to me.
This means post archive filtering using the tag url parameter doesn't work by default.
But if for example any query_var is changed in the 'pre_get_posts' filter it suddenly does work. Even if the query_var changed is entirely unrelated.


class WP_Query {
  public function parse_tax_query( &$q ) {
    if ( '' !== $q['tag'] && ! $this->is_singular && $this->query_vars_changed ) {

Change History (0)

Note: See TracTickets for help on using tickets.