diff --git a/wp-admin/includes/class-walker-nav-menu-edit.php b/wp-admin/includes/class-walker-nav-menu-edit.php index eb940af37c..974b00bee5 100644 --- a/wp-admin/includes/class-walker-nav-menu-edit.php +++ b/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-"> diff --git a/wp-includes/version.php b/wp-includes/version.php index 470ea1b02a..388164f1e6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45613'; +$wp_version = '5.3-alpha-45614'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.