diff --git src/wp-includes/media-template.php src/wp-includes/media-template.php
index 08547ce1b5..21adc09da0 100644
|
|
function wp_print_media_templates() { |
557 | 557 | |
558 | 558 | <div class="actions"> |
559 | 559 | <# if ( data.link ) { #> |
560 | | <a class="view-attachment" href="{{ data.link }}"><?php _e( 'View attachment page' ); ?></a> |
| 560 | <?php |
| 561 | $view_media_text = ( '1' === get_option( 'wp_attachment_pages_enabled' ) ) ? __( 'View attachment page' ) : __( 'View media file' ); |
| 562 | ?> |
| 563 | <a class="view-attachment" href="{{ data.link }}"><?php echo $view_media_text; ?></a> |
561 | 564 | <# } #> |
562 | 565 | <# if ( data.can.save ) { #> |
563 | 566 | <# if ( data.link ) { #> |
diff --git src/wp-includes/post.php src/wp-includes/post.php
index 696e74ed2c..a1e681556a 100644
|
|
function create_initial_post_types() { |
77 | 77 | 'name_admin_bar' => _x( 'Media', 'add new from admin bar' ), |
78 | 78 | 'add_new' => __( 'Add New Media File' ), |
79 | 79 | 'edit_item' => __( 'Edit Media' ), |
80 | | 'view_item' => __( 'View Attachment Page' ), |
| 80 | 'view_item' => ( '1' === get_option( 'wp_attachment_pages_enabled' ) ) ? __( 'View Attachment Page' ) : __( 'View Media File' ), |
81 | 81 | 'attributes' => __( 'Attachment Attributes' ), |
82 | 82 | ), |
83 | 83 | 'public' => true, |