Changeset 55218
- Timestamp:
- 02/03/2023 10:23:19 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r55198 r55218 769 769 } 770 770 771 $actions['view'] = sprintf( 772 '<a href="%s" aria-label="%s" rel="bookmark">%s</a>', 773 get_permalink( $post->ID ), 774 /* translators: %s: Attachment title. */ 775 esc_attr( sprintf( __( 'View “%s”' ), $att_title ) ), 776 __( 'View' ) 777 ); 771 if ( get_permalink( $post->ID ) ) { 772 $actions['view'] = sprintf( 773 '<a href="%s" aria-label="%s" rel="bookmark">%s</a>', 774 get_permalink( $post->ID ), 775 /* translators: %s: Attachment title. */ 776 esc_attr( sprintf( __( 'View “%s”' ), $att_title ) ), 777 __( 'View' ) 778 ); 779 } 778 780 779 781 if ( current_user_can( 'edit_post', $post->ID ) ) { … … 830 832 831 833 if ( ! $this->is_trash ) { 832 $actions['view'] = sprintf( 833 '<a href="%s" aria-label="%s" rel="bookmark">%s</a>', 834 get_permalink( $post->ID ), 835 /* translators: %s: Attachment title. */ 836 esc_attr( sprintf( __( 'View “%s”' ), $att_title ) ), 837 __( 'View' ) 838 ); 834 if ( get_permalink( $post->ID ) ) { 835 $actions['view'] = sprintf( 836 '<a href="%s" aria-label="%s" rel="bookmark">%s</a>', 837 get_permalink( $post->ID ), 838 /* translators: %s: Attachment title. */ 839 esc_attr( sprintf( __( 'View “%s”' ), $att_title ) ), 840 __( 'View' ) 841 ); 842 } 839 843 840 844 $actions['copy'] = sprintf(
Note: See TracChangeset
for help on using the changeset viewer.