[wp-trac] [WordPress Trac] #50225: get_edit_term_link can technically accept also WP_Term and object for $term_id
WordPress Trac
noreply at wordpress.org
Fri Nov 26 11:41:40 UTC 2021
#50225: get_edit_term_link can technically accept also WP_Term and object for
$term_id
-------------------------------------------------+-------------------------
Reporter: david.binda | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: high | Milestone: 5.9
Component: Taxonomy | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests needs-dev- | Focuses:
note needs-docs commit | performance
-------------------------------------------------+-------------------------
Changes (by audrasjb):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"52255" 52255]:
{{{
#!CommitTicketReference repository="" revision="52255"
Taxonomy: Use `WP_Term` object to retrieve the taxonomy in
`get_term_feed_link()`.
This change fixes a backward compatibility issue introduced in [52180]
where `get_term_feed_link()` did not honor the `$taxonomy` parameter
anymore. Rather than using the default `category` taxonomy when passing a
term ID in `get_term_feed_link()`, use the `WP_Term` object to get the
taxonomy.
Follow-up to [52180].
Props hugod.
Fixes #50225.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50225#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list