Add show_in_nav_menus flag to post type registration. Props williamsba1. fixes #13144

git-svn-id: https://develop.svn.wordpress.org/trunk@14602 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-05-13 17:29:45 +00:00
parent 4330e2578b
commit 3c7ca79f6e
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;