From b46e129883008927dced402ef418cd202050550b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 29 Apr 2010 19:16:21 +0000 Subject: [PATCH] Remove debug git-svn-id: https://develop.svn.wordpress.org/trunk@14306 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/nav-menu.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php index 10cb0a8248..6e705682d9 100644 --- a/wp-admin/includes/nav-menu.php +++ b/wp-admin/includes/nav-menu.php @@ -323,7 +323,7 @@ function wp_initial_nav_menu_meta_boxes() { if ( get_user_option( 'metaboxhidden_nav-menus' ) || ! is_array($wp_meta_boxes) ) return; - + $initial_meta_boxes = array( 'manage-menu', 'create-menu', 'add-custom-links', 'add-page', 'add-category' ); $hidden_meta_boxes = array(); @@ -338,9 +338,9 @@ function wp_initial_nav_menu_meta_boxes() { } } } + $user = wp_get_current_user(); update_user_option( $user->ID, 'metaboxhidden_nav-menus', $hidden_meta_boxes, true ); - $option = get_user_option( 'metaboxhidden_nav-menus', $user->ID); } /**