diff --git a/wp-includes/nav-menu.php b/wp-includes/nav-menu.php index e871578213..b6dbf73131 100644 --- a/wp-includes/nav-menu.php +++ b/wp-includes/nav-menu.php @@ -817,6 +817,12 @@ function wp_setup_nav_menu_item( $menu_item ) { $object = get_post_type_object( $menu_item->object ); if ( $object ) { $menu_item->type_label = $object->labels->singular_name; + // Use post states for special pages. + $menu_post = get_post( $menu_item->object_id ); + $post_states = get_post_states( $menu_post ); + if ( $post_states ) { + $menu_item->type_label = implode( ',', $post_states ); + } } else { $menu_item->type_label = $menu_item->object; $menu_item->_invalid = true; diff --git a/wp-includes/version.php b/wp-includes/version.php index bac12d152e..18ffab1250 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-47210'; +$wp_version = '5.4-alpha-47211'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.