Changeset 58279 for trunk/src/wp-admin/async-upload.php
- Timestamp:
- 06/02/2024 08:35:30 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/async-upload.php
r58210 r58279 66 66 <span class="media-list-title"><strong><?php echo esc_html( wp_html_excerpt( $title, 60, '…' ) ); ?></strong></span> 67 67 <span class="media-list-subtitle"><?php echo esc_html( wp_basename( $file ) ); ?></span> 68 <div class="attachment-tools"> 69 <?php 70 if ( current_user_can( 'edit_post', $id ) ) { 71 echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '">' . _x( 'Edit', 'media item' ) . '</a>'; 72 } else { 73 echo '<span class="edit-attachment">' . _x( 'Success', 'media item' ) . '</span>'; 74 } 75 ?> 76 <span class="media-item-copy-container copy-to-clipboard-container edit-attachment"> 77 <button type="button" class="button button-small copy-attachment-url" data-clipboard-text="<?php echo $file_url; ?>"><?php _e( 'Copy URL to clipboard' ); ?></button> 78 <span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span> 79 </span> 80 </div> 68 81 </div> 69 </div>70 <div class="attachment-tools">71 <span class="media-item-copy-container copy-to-clipboard-container edit-attachment">72 <button type="button" class="button button-small copy-attachment-url" data-clipboard-text="<?php echo esc_url( $file_url ); ?>"><?php _e( 'Copy URL to clipboard' ); ?></button>73 <span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>74 </span>75 <?php76 if ( current_user_can( 'edit_post', $id ) ) {77 echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '">' . _x( 'Edit', 'media item' ) . '</a>';78 } else {79 echo '<span class="edit-attachment">' . _x( 'Success', 'media item' ) . '</span>';80 }81 ?>82 82 </div> 83 83 </div>
Note: See TracChangeset
for help on using the changeset viewer.