[wp-trac] [WordPress Trac] #42771: WP_Term::get_instance() regression for non-category terms queried with 'category' taxonomy

WordPress Trac noreply at wordpress.org
Mon Dec 4 21:02:12 UTC 2017


#42771: WP_Term::get_instance() regression for non-category terms queried with
'category' taxonomy
--------------------------+--------------------
 Reporter:  markjaquith   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  4.9.2
Component:  Taxonomy      |     Version:  4.9
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------

Comment (by boonebgorges):

 In [changeset:"42367"]:
 {{{
 #!CommitTicketReference repository="" revision="42367"
 `get_the_category_by_ID()` should be taxonomy-agnostic.

 Prior to 4.9, this function was accidentally taxonomy-agnostic in most
 cases.
 The fix in [40979] caused a regression in this function. For backward
 compatibility, we make it explicit that the query is by ID only.

 See #42771.
 }}}

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


More information about the wp-trac mailing list