Ticket #51355: 51355.diff
File 51355.diff, 3.4 KB (added by , 4 years ago) |
---|
-
src/wp-admin/css/media.css
804 804 clear: both; 805 805 } 806 806 807 .copy-to-clipboard-container .copy-attachment-url { 808 white-space: normal; 809 } 810 807 811 .copy-to-clipboard-container .success { 812 color: #40860a; 808 813 margin-left: 8px; 809 814 } 810 815 -
src/wp-admin/includes/media.php
3271 3271 <label for="attachment_url"><?php _e( 'File URL:' ); ?></label> 3272 3272 <input type="text" class="widefat urlfield" readonly="readonly" name="attachment_url" id="attachment_url" value="<?php echo esc_attr( $att_url ); ?>" /> 3273 3273 <span class="copy-to-clipboard-container"> 3274 <button type="button" class="button copy-attachment-url edit-media" data-clipboard-target="#attachment_url"><?php _e( 'Copy URL ' ); ?></button>3274 <button type="button" class="button copy-attachment-url edit-media" data-clipboard-target="#attachment_url"><?php _e( 'Copy URL to clipboard' ); ?></button> 3275 3275 <span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span> 3276 3276 </span> 3277 3277 </div> -
src/wp-includes/css/media-views.css
474 474 .attachment-details .copy-to-clipboard-container .success { 475 475 padding: 0; 476 476 min-height: 0; 477 line-height: 2.18181818; 477 478 text-align: left; 479 color: #40860a; 478 480 } 479 481 480 482 .compat-item label span { -
src/wp-includes/media-template.php
503 503 <label for="attachment-details-two-column-copy-link" class="name"><?php _e( 'File URL:' ); ?></label> 504 504 <input type="text" class="attachment-details-copy-link" id="attachment-details-two-column-copy-link" value="{{ data.url }}" readonly /> 505 505 <span class="copy-to-clipboard-container"> 506 <button type="button" class="button button-small copy-attachment-url" data-clipboard-target="#attachment-details-two-column-copy-link"><?php _e( 'Copy URL ' ); ?></button>506 <button type="button" class="button button-small copy-attachment-url" data-clipboard-target="#attachment-details-two-column-copy-link"><?php _e( 'Copy URL to clipboard' ); ?></button> 507 507 <span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span> 508 508 </span> 509 509 </span> … … 694 694 <label for="attachment-details-copy-link" class="name"><?php _e( 'File URL:' ); ?></label> 695 695 <input type="text" class="attachment-details-copy-link" id="attachment-details-copy-link" value="{{ data.url }}" readonly /> 696 696 <div class="copy-to-clipboard-container"> 697 <button type="button" class="button button-small copy-attachment-url" data-clipboard-target="#attachment-details-copy-link"><?php _e( 'Copy URL ' ); ?></button>697 <button type="button" class="button button-small copy-attachment-url" data-clipboard-target="#attachment-details-copy-link"><?php _e( 'Copy URL to clipboard' ); ?></button> 698 698 <span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span> 699 699 </div> 700 700 </span>