[wp-trac] [WordPress Trac] #29251: Redirect URL of "Edit <term>" from frontend is wrong.
WordPress Trac
noreply at wordpress.org
Tue Apr 21 06:15:07 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
--------------------------+-----------------------------
Comment (by nacin):
We could filter (`array_filter( $tax->object_type, 'post_type_exists' )`,
or probably better, check `post_type_exists( reset( $tax->object_type )
)`. But if it's not, well, then I'm not sure what the behavior was or
would be now, but I reckon we shouldn't set a &post_type= QV.
(also: `else if` => `elseif`)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29251#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list