Make WordPress Core

Ticket #62434: 62434.patch

File 62434.patch, 806 bytes (added by pitamdey, 8 months ago)

Patch for this issue

  • wp-admin/async-upload.php

     
    7474                                                        }
    7575                                                        ?>
    7676                                                        <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>
     77                                                                <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>
    7878                                                                <span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
    7979                                                        </span>
    8080                                                </div>