From 7eedc2359d1bf020608e1470f442bfe17280fa36 Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@14974 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 - ); ?>"> | + ); ?>"> |