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:
ryan
2010-05-13 17:29:45 +00:00
parent e4ca88c1e8
commit 067fc117cb
2 changed files with 6 additions and 2 deletions

View File

@@ -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;