mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Partially fix default hidden meta boxes for nav menus. see #13134
git-svn-id: https://develop.svn.wordpress.org/trunk@14301 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user