mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Limit initial menu meta boxes only if option is not set. Props ocean90. fixes #13359
git-svn-id: https://develop.svn.wordpress.org/trunk@14598 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -334,7 +334,7 @@ function wp_nav_menu_setup() {
|
||||
function wp_initial_nav_menu_meta_boxes() {
|
||||
global $wp_meta_boxes;
|
||||
|
||||
if ( get_user_option( 'metaboxhidden_nav-menus' ) || ! is_array($wp_meta_boxes) )
|
||||
if ( get_user_option( 'metaboxhidden_nav-menus' ) !== false || ! is_array($wp_meta_boxes) )
|
||||
return;
|
||||
|
||||
$initial_meta_boxes = array( 'manage-menu', 'create-menu', 'add-custom-links', 'add-page', 'add-category' );
|
||||
|
||||
Reference in New Issue
Block a user