diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php index cb1519c83b..61657c05ce 100644 --- a/wp-admin/includes/nav-menu.php +++ b/wp-admin/includes/nav-menu.php @@ -502,7 +502,7 @@ function wp_nav_menu_item_post_type_meta_box( $object, $box ) { } $post_type = get_post_type_object( $post_type_name ); - $archive_link = get_post_type_archive_link( $post_type_name ); + if ( $post_type->has_archive ) { $_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? intval($_nav_menu_placeholder) - 1 : -1; array_unshift( $posts, (object) array( diff --git a/wp-includes/version.php b/wp-includes/version.php index 6389faa296..c50917d2a2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38310'; +$wp_version = '4.7-alpha-38311'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.