Add show_in_nav_menus flag to post type registration. Props williamsba1. fixes #13144
git-svn-id: http://svn.automattic.com/wordpress/trunk@14602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -362,7 +362,7 @@ function wp_initial_nav_menu_meta_boxes() {
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function wp_nav_menu_post_type_meta_boxes() {
|
||||
$post_types = get_post_types( array( 'public' => true ), 'object' );
|
||||
$post_types = get_post_types( array( 'show_in_nav_menus' => true ), 'object' );
|
||||
|
||||
if ( ! $post_types )
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user