Make WordPress Core

Ticket #60978: 60978.2.patch

File 60978.2.patch, 1.2 KB (added by nareshbheda, 10 months ago)
  • src/wp-admin/async-upload.php

    diff --git a/src/wp-admin/async-upload.php b/src/wp-admin/async-upload.php
    index 864f2be654..d32111bfe2 100644
    a b if ( isset( $_REQUEST['attachment_id'] ) && (int) $_REQUEST['attachment_id'] && 
    6464                                        ?>
    6565                                        <div class="filename new">
    6666                                                <span class="media-list-title"><strong><?php echo esc_html( wp_html_excerpt( $title, 60, '&hellip;' ) ); ?></strong></span>
    67                                                 <span class="media-list-subtitle"><?php echo wp_basename( $file ); ?></span>
     67                                                <span class="media-list-subtitle"><?php echo esc_html( wp_basename( $file ) ); ?></span>
    6868                                        </div>
    6969                                </div>
    7070                                <div class="attachment-tools">
    7171                                        <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 $file_url; ?>"><?php _e( 'Copy URL to clipboard' ); ?></button>
     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>
    7373                                                <span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
    7474                                        </span>
    7575                                        <?php