mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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