Partially fix default hidden meta boxes for nav menus. see #13134

git-svn-id: http://svn.automattic.com/wordpress/trunk@14301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-04-29 17:47:11 +00:00
parent 01b2401d91
commit 62a5269eed

View File

@ -338,7 +338,7 @@ function wp_initial_nav_menu_meta_boxes() {
}
}
$user = wp_get_current_user();
update_user_meta( $user->ID, 'meta-box-hidden_nav-menus', $hidden_meta_boxes );
update_user_option( $user->ID, 'metaboxhidden_nav-menus', $hidden_meta_boxes, true );
// returns all the hidden metaboxes to the js function: wpNavMenu.initial_meta_boxes()
return join( ',', $hidden_meta_boxes );