Make WordPress Core


Ignore:
Timestamp:
02/06/2016 03:57:33 AM (8 years ago)
Author:
boonebgorges
Message:

WP_Query taxonomy query vars should be set to first of multiple taxonomies.

This provides better parity with get_queried_object(), which will return the
first taxonomy/term matched by the current query.

[29891] introduced the abnormal behavior for the 'taxonomy' and 'term'
query vars.

Props Chouby.
Fixes #35619.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/query.php

    r36404 r36484  
    28582858                            $q['term_id'] = $queried_items['terms'][0];
    28592859                        }
     2860
     2861                        // Take the first one we find.
     2862                        break;
    28602863                    }
    28612864                }
Note: See TracChangeset for help on using the changeset viewer.