diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php index f0cceaeb39..42efbe6ebf 100644 --- a/wp-admin/includes/nav-menu.php +++ b/wp-admin/includes/nav-menu.php @@ -216,7 +216,7 @@ function wp_nav_menu_sub_items($childof, $intCounter, $parentli, $type, $output_ return $counter; } - +/* function wp_nav_menu_setup($override = false) { // Custom Navigation Menu Setup @@ -232,5 +232,5 @@ function wp_nav_menu_setup($override = false) { wp_create_nav_menu( __('Main') ); } - +/**/ ?> \ No newline at end of file diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php index b79f2feadc..f490a6df91 100644 --- a/wp-admin/nav-menus.php +++ b/wp-admin/nav-menus.php @@ -70,13 +70,6 @@ if ( $menu_selected_id > 0 ) { } } -if ( isset( $_POST['set_wp_menu'] ) ) { - // @todo validate set_wp_menu - update_option( 'wp_custom_nav_menu', $_POST['enable_wp_menu'] ); - $updated = true; - $messagesdiv = '
' . __('Menu has been updated!') . '
' . esc_html( sprintf( __('"%s" menu has been created!'), $menu->name ) ) . '
' . __('The menu has been reset.') . '
' . __('The menu could not be reset. Please try again.') . '