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

WordPress Trac noreply at wordpress.org
Mon Aug 18 12:29:46 UTC 2014


#29251: Redirect URL of "Edit <term>" from frontend is wrong.
-------------------------------------------+-----------------------------
 Reporter:  DzeryCZ                        |      Owner:
     Type:  defect (bug)                   |     Status:  new
 Priority:  normal                         |  Milestone:  Awaiting Review
Component:  Taxonomy                       |    Version:  3.9.2
 Severity:  normal                         |   Keywords:
  Focuses:  accessibility, administration  |
-------------------------------------------+-----------------------------
 Hello,

 When you're on frontend in some term of custom taxonomy and click on "Edit
 <term>" in top admin menu bar, you'll be redirect to edit of that
 taxonomy, but in left menu you're still in "posts" not in custom post
 type.

 I see in /wp-includes/admin-bar.php on line 537 this:

 {{{
 'href' => get_edit_term_link( $current_object->term_id,
 $current_object->taxonomy)
 }}}


 but I think, that there should be something like this:

 {{{
 'href' => get_edit_term_link( $current_object->term_id,
 $current_object->taxonomy,get_post_type())
 }}}

 One picture is worth a thousand words:
 [[Image(http://support.jawtemplates.com/goodstore/web/wp-
 content/uploads/2014/08/WP_CUSTOM_POSTS_BUG.png)]]

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


More information about the wp-trac mailing list