Make WordPress Core


Ignore:
Timestamp:
09/26/2023 02:43:25 PM (2 years ago)
Author:
hellofromTonya
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r56695 r56711  
    7878                'add_new'        => __( 'Add New Media File' ),
    7979                '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' ),
    8181                'attributes'     => __( 'Attachment Attributes' ),
    8282            ),
Note: See TracChangeset for help on using the changeset viewer.