[wp-trac] [WordPress Trac] #29251: Redirect URL of "Edit <term>" from frontend is wrong.

WordPress Trac noreply at wordpress.org
Fri Jan 16 21:28:44 UTC 2015


#29251: Redirect URL of "Edit <term>" from frontend is wrong.
--------------------------+-----------------------------
 Reporter:  DzeryCZ       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.2
Component:  Taxonomy      |     Version:  3.9.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------
Changes (by boonebgorges):

 * milestone:  Awaiting Review => 4.2


Comment:

 Good catch. I don't think there's much we can do in the case of multiple
 object types - there's no real way to tell which one is "meant", so I
 think the best we can do is to grab the first one.

 I'm going to add a little additional logic to ensure that there are no
 errors in case the taxonomy archive has no items (so `$post` may not be
 set), or in case the taxonomy is not associated with any object_type.

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


More information about the wp-trac mailing list