Skip to content

Commit 4ac9d7d

Browse files
committed
Media URLs in text inputs
1 parent 4946207 commit 4ac9d7d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/wp-admin/includes/media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3330,7 +3330,7 @@ function attachment_submitbox_metadata() {
33303330

33313331
<div class="misc-pub-section misc-pub-attachment">
33323332
<label for="attachment_url"><?php _e( 'File URL:' ); ?></label>
3333-
<input type="text" class="widefat urlfield" readonly="readonly" name="attachment_url" id="attachment_url" value="<?php echo esc_attr( $att_url ); ?>" />
3333+
<input type="text" class="widefat urlfield ltr" readonly="readonly" name="attachment_url" id="attachment_url" value="<?php echo esc_attr( $att_url ); ?>" />
33343334
<span class="copy-to-clipboard-container">
33353335
<button type="button" class="button copy-attachment-url edit-media" data-clipboard-target="#attachment_url"><?php _e( 'Copy URL to clipboard' ); ?></button>
33363336
<span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>

src/wp-includes/media-template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ function wp_print_media_templates() {
510510
</span>
511511
<span class="setting" data-setting="url">
512512
<label for="attachment-details-two-column-copy-link" class="name"><?php _e( 'File URL:' ); ?></label>
513-
<input type="text" class="attachment-details-copy-link" id="attachment-details-two-column-copy-link" value="{{ data.url }}" readonly />
513+
<input type="text" class="attachment-details-copy-link ltr" id="attachment-details-two-column-copy-link" value="{{ data.url }}" readonly />
514514
<span class="copy-to-clipboard-container">
515515
<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>
516516
<span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
@@ -741,7 +741,7 @@ function wp_print_media_templates() {
741741
</span>
742742
<span class="setting" data-setting="url">
743743
<label for="attachment-details-copy-link" class="name"><?php _e( 'File URL:' ); ?></label>
744-
<input type="text" class="attachment-details-copy-link" id="attachment-details-copy-link" value="{{ data.url }}" readonly />
744+
<input type="text" class="attachment-details-copy-link ltr" id="attachment-details-copy-link" value="{{ data.url }}" readonly />
745745
<div class="copy-to-clipboard-container">
746746
<button type="button" class="button button-small copy-attachment-url" data-clipboard-target="#attachment-details-copy-link"><?php _e( 'Copy URL to clipboard' ); ?></button>
747747
<span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>

0 commit comments

Comments
 (0)