[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:54:17 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:"42369"]:
{{{
#!CommitTicketReference repository="" revision="42369"
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.
Merges [42364], [42365] to the 4.9 branch.
Fixes #42717. See #42771.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42771#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list