mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Media: Change link text when attachment pages disabled.
When attachment pages are disabled, change the links from "View Attachment Page" to "View Media File". Follow-up to [56657], [56658]. Props joedolson, ironprogrammer, oglekler. Fixes #57913. git-svn-id: https://develop.svn.wordpress.org/trunk@56711 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user