diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php
index 9620813759..916e1b1920 100644
--- a/wp-admin/nav-menus.php
+++ b/wp-admin/nav-menus.php
@@ -57,10 +57,10 @@ if ( isset( $_GET['edit-menu'] ) ) {
if ( isset($_GET['delete-menu']) && $_GET['delete-menu'] > 0 ) {
// if ( ! current_user_can('delete_menus') )
// wp_die( __( 'Cheatin’ uh?' ));
-
+
$menu_id = (int) $_GET['delete-menu'];
check_admin_referer( 'delete_menu-' . $menu_id );
-
+
wp_delete_nav_menu( $menu_id );
$messages_div = '
' . __('Menu successfully deleted.') . '
';
$menu_selected_id = 0;
@@ -78,7 +78,7 @@ if ( empty($menus) && empty($_POST) ) {
if ( ! $menu_selected_id && ! empty($menus) )
$menu_selected_id = $menus[0]->term_id;
-// Get the name of the current Menu
+// Get the name of the current Menu
$menu_title = '';
$valid_menu = false;
if ( $menu_selected_id > 0 ) {
@@ -121,7 +121,7 @@ if ( isset( $_POST['create-menu'] ) && ! $updated ) {
if ( $post_counter > 0 && $menu_selected_id > 0 && ! $updated ) {
$menu_items = wp_get_nav_menu_items( $menu_selected_id, array('orderby' => 'ID', 'output' => ARRAY_A, 'output_key' => 'ID') );
$parent_menu_ids = array();
-
+
// Loop through all POST variables
for ( $k = 1; $k <= $post_counter; $k++ ) {
$db_id = isset( $_POST['item-dbid'.$k] )? $_POST['item-dbid'.$k] : 0;
@@ -130,7 +130,7 @@ if ( $post_counter > 0 && $menu_selected_id > 0 && ! $updated ) {
$custom_title = isset( $_POST['item-title'.$k] )? $_POST['item-title'.$k] : '';
$custom_linkurl = ( isset( $_POST['item-url'.$k] ) && 'custom' == $_POST['linktype'.$k] ) ? $_POST['item-url'.$k] : '';
$custom_description = isset( $_POST['item-description'.$k] )? $_POST['item-description'.$k] : '';
-
+
// doesn't seem to be used by UI
$position = isset( $_POST['item-position'.$k] )? $_POST['item-position'.$k] : 0;
$linktype = isset( $_POST['item-type'.$k] )? $_POST['item-type'.$k] : 'custom';
@@ -144,7 +144,7 @@ if ( $post_counter > 0 && $menu_selected_id > 0 && ! $updated ) {
if ( $parent_id > 0 && isset( $parent_menu_ids[$parent_id] ) )
$post['post_parent'] = $parent_menu_ids[$parent_id];
-
+
// New menu item
if ( $db_id == 0 ) {
$db_id = wp_insert_post( $post );
@@ -179,7 +179,7 @@ if ( $post_counter > 0 && $menu_selected_id > 0 && ! $updated ) {
-
+