[wp-trac] [WordPress Trac] #29251: Redirect URL of "Edit <term>" from frontend is wrong.
WordPress Trac
noreply at wordpress.org
Fri Jan 16 21:36:14 UTC 2015
#29251: Redirect URL of "Edit <term>" from frontend is wrong.
--------------------------+-----------------------------
Reporter: DzeryCZ | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.2
Component: Taxonomy | Version: 3.9.2
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: administration
--------------------------+-----------------------------
Changes (by boonebgorges):
* owner: => boonebgorges
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"31218"]:
{{{
#!CommitTicketReference repository="" revision="31218"
In `get_edit_term_link()`, default to a valid `$object_type`.
The $object_type param is used to set the 'post_type' query var, which
determines the post type menu that will be expanded when clicking through
to
the term edit page. Not all taxonomies are associated with Posts, so it
makes
sense to default to a post_type that the taxonomy is actually associated
with.
Props DzeryCZ, juliobox.
Fixes #29251.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29251#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list