WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/26/2021 01:39:47 AM (5 months ago)
Author:
antpb
Message:

Media: Add button in media upload page for copying the media url.

Adds a button to the media upload page to make copying the url possible on the same page when a media item upload is successful.

Props anotia, ryokuhi, Mista-Flo, lukecarbis, antpb, claytoncollie, shaunandrews, joedolson.
Fixes #51754.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r51017 r51023  
    884884        'error_uploading'           => __( '“%s” has failed to upload.' ),
    885885        'unsupported_image'         => __( 'This image cannot be displayed in a web browser. For best results convert it to JPEG before uploading.' ),
     886        'file_url_copied'           => __( 'The file URL has been copied to your clipboard' ),
    886887    );
    887888
     
    893894    }
    894895
    895     $scripts->add( 'plupload-handlers', "/wp-includes/js/plupload/handlers$suffix.js", array( 'plupload', 'jquery' ) );
     896    $scripts->add( 'plupload-handlers', "/wp-includes/js/plupload/handlers$suffix.js", array( 'clipboard', 'jquery', 'plupload', 'underscore', 'wp-a11y', 'wp-i18n' ) );
    896897    did_action( 'init' ) && $scripts->localize( 'plupload-handlers', 'pluploadL10n', $uploader_l10n );
    897898
Note: See TracChangeset for help on using the changeset viewer.