[wp-trac] [WordPress Trac] #34262: `get_the_terms()` should not cache `WP_Term` objects

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


#34262: `get_the_terms()` should not cache `WP_Term` objects
--------------------------+------------------
 Reporter:  boonebgorges  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.4
Component:  Taxonomy      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     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/34262#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list