From 059eb46ddd7bcd9e43a6d6ba1f8bc55ff06de1c6 Mon Sep 17 00:00:00 2001 From: SergeyBiryukov Date: Wed, 4 Nov 2015 10:55:01 +0000 Subject: [PATCH] Menus: After [35450], use correct IDs in `$initial_meta_boxes`. Props swissspidy. Fixes #33925. git-svn-id: https://develop.svn.wordpress.org/trunk@35502 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/nav-menu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/nav-menu.php b/src/wp-admin/includes/nav-menu.php index aa5fa75c24..5944f93bd2 100644 --- a/src/wp-admin/includes/nav-menu.php +++ b/src/wp-admin/includes/nav-menu.php @@ -154,7 +154,7 @@ function wp_initial_nav_menu_meta_boxes() { if ( get_user_option( 'metaboxhidden_nav-menus' ) !== false || ! is_array($wp_meta_boxes) ) return; - $initial_meta_boxes = array( 'add-page', 'add-post', 'add-custom-links', 'add-category' ); + $initial_meta_boxes = array( 'add-post-type-page', 'add-post-type-post', 'add-custom-links', 'add-category' ); $hidden_meta_boxes = array(); foreach ( array_keys($wp_meta_boxes['nav-menus']) as $context ) {