Make WordPress Core


Ignore:
Timestamp:
09/27/2020 08:46:44 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Media: Make the "Copy URL" button implementation more consistent with other instances in core:

  • Make the "Copied!" text green.
  • Make the button verbiage clear that it's copied "to clipboard".

Props garrett-eclipse, mukesh27.
Fixes #51355.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r49021 r49064  
    32723272        <input type="text" class="widefat urlfield" readonly="readonly" name="attachment_url" id="attachment_url" value="<?php echo esc_attr( $att_url ); ?>" />
    32733273        <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>
    32753275            <span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
    32763276        </span>
Note: See TracChangeset for help on using the changeset viewer.