[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 20:31:34 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 juiiee8487):

 Replying to [comment:5 markjaquith]:
 > I think this approach could work nicely! Solves the weird cases in the
 wild without introducing special case handling to our generic terms
 functions.
 >
 > @juiiee8487 I think we can simplify that even further...
 `get_tag_link()` could just call `get_category_link()` since we'll be
 removing the only difference between the two functions!

 Yes. You are right. How about this
 [[https://core.trac.wordpress.org/attachment/ticket/42771/42771.1-tag-
 specific.diff|42771.1-tag-specific.diff]]?

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


More information about the wp-trac mailing list