[wp-trac] [WordPress Trac] #33532: WP_Query->parse_tax_query() generates errors for categories and tags as querystring arrays

WordPress Trac noreply at wordpress.org
Mon Oct 12 15:03:46 UTC 2015


#33532: WP_Query->parse_tax_query() generates errors for categories and tags as
querystring arrays
------------------------------+---------------------------
 Reporter:  Veraxus           |       Owner:  boonebgorges
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.4
Component:  Query             |     Version:  trunk
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+---------------------------

Comment (by boonebgorges):

 In [changeset:"35030"]:
 {{{
 #!CommitTicketReference repository="" revision="35030"
 Fix incorrect setup in 'tag' query var test.

 The test, introduced in [33724], was intended to demonstrate the behavior
 of
 `example.com?tag=foo` routing. But an error in the test setup meant that a
 URL-encoded tag object was being set as the value of 'tag'. Due to a quirk
 in
 the way that `parse_request()` parses query vars, an object value for
 'tag'
 would inadvertently produce correct results in certain cases. But it's not
 a
 usage we actively support, and it's not what was meant to be tested.

 See #33532, #34262.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33532#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list