diff --git a/src/wp-admin/includes/class-walker-nav-menu-edit.php b/src/wp-admin/includes/class-walker-nav-menu-edit.php index eb940af37c..974b00bee5 100644 --- a/src/wp-admin/includes/class-walker-nav-menu-edit.php +++ b/src/wp-admin/includes/class-walker-nav-menu-edit.php @@ -119,9 +119,10 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { type_label ); ?> - + $item_id, + ), + remove_query_arg( $removed_args, admin_url( 'nav-menus.php#menu-item-settings-' . $item_id ) ) + ); + } + + printf( + '%s', + $item_id, + $edit_url, + esc_attr__( 'Edit menu item' ), + __( 'Edit' ) + ); + ?> @@ -223,32 +242,42 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { ?>
- %s', + $item_id, + wp_nonce_url( + add_query_arg( + array( + 'action' => 'delete-menu-item', + 'menu-item' => $item_id, + ), + admin_url( 'nav-menus.php' ) ), - admin_url( 'nav-menus.php' ) - ) + 'delete-menu_item_' . $item_id + ), + __( 'Remove' ) + ); + ?> + + %s', + $item_id, + esc_url( + add_query_arg( + array( + 'edit-menu-item' => $item_id, + 'cancel' => time(), + ), + admin_url( 'nav-menus.php' ) + ) + ), + $item_id, + __( 'Cancel' ) ); ?> - #menu-item-settings-">