diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php
index 08547ce1b5..21adc09da0 100644
--- a/wp-includes/media-template.php
+++ b/wp-includes/media-template.php
@@ -557,7 +557,10 @@ function wp_print_media_templates() {
<# if ( data.link ) { #>
-
+
+
<# } #>
<# if ( data.can.save ) { #>
<# if ( data.link ) { #>
diff --git a/wp-includes/post.php b/wp-includes/post.php
index 197653feda..8a3bc56656 100644
--- a/wp-includes/post.php
+++ b/wp-includes/post.php
@@ -77,7 +77,7 @@ function create_initial_post_types() {
'name_admin_bar' => _x( 'Media', 'add new from admin bar' ),
'add_new' => __( 'Add New Media File' ),
'edit_item' => __( 'Edit Media' ),
- 'view_item' => __( 'View Attachment Page' ),
+ 'view_item' => ( '1' === get_option( 'wp_attachment_pages_enabled' ) ) ? __( 'View Attachment Page' ) : __( 'View Media File' ),
'attributes' => __( 'Attachment Attributes' ),
),
'public' => true,
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 3db995889a..ed52895608 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.4-alpha-56710';
+$wp_version = '6.4-alpha-56711';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.