mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
01b2401d91
commit
62a5269eed
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user