[wp-trac] [WordPress Trac] #40671: Calling get_term() with just ID, then calling it again with ID and a different taxonomy returns the same term

WordPress Trac noreply at wordpress.org
Mon Dec 4 20:39:02 UTC 2017


#40671: Calling get_term() with just ID, then calling it again with ID and a
different taxonomy returns the same term
--------------------------+---------------------------
 Reporter:  GunGeekATX    |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.9
Component:  Taxonomy      |     Version:  4.7.4
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------------

Comment (by boonebgorges):

 In [changeset:"42364"]:
 {{{
 #!CommitTicketReference repository="" revision="42364"
 Don't do a strict taxonomy check in `get_category_link()`.

 Prior to version 4.9, a quirk in the implementation of `get_term()` caused
 `get_category_link( 123 )` to fetch the taxonomy archive link for term 123
 even if 123 is not in the 'category' taxonomy. The quirk was fixed in
 [40979];
 see #40671. This bugfix introduced a regression for theme authors who were
 expecting the old behavior.

 By lifting the 'category' restriction, we allow the template function to
 work
 in the old way.

 Fixes #42717. See #42771.
 }}}

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


More information about the wp-trac mailing list