From 32565eeeb2ba4eae36be425462549a440bb1a252 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 27 May 2010 02:49:11 +0000 Subject: [PATCH] Implement the Cancel menu item link for no JS. props ocean90, see #13525. git-svn-id: https://develop.svn.wordpress.org/trunk@14974 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/nav-menu.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php index 87ec898d93..39a56ec27f 100644 --- a/wp-admin/includes/nav-menu.php +++ b/wp-admin/includes/nav-menu.php @@ -93,8 +93,8 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { ?>" class="item-move-down"> Edit Menu Item + echo ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) ? admin_url( 'nav-menus.php' ) : add_query_arg( 'edit-menu-item', $item_id, remove_query_arg( $removed_args, admin_url( 'nav-menus.php#menu-item-settings-' . $item_id ) ) ); + ?>">Edit Menu Item @@ -168,7 +168,8 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { remove_query_arg($removed_args, admin_url( 'nav-menus.php' ) ) ), 'delete-menu_item_' . $item_id - ); ?>"> | + ); ?>"> |