mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 00:58:46 +01:00
Coding Standards: Escape attachment URL in wp-admin/async-upload.php
.
Follow-up to [58279]. Props shyamkariya, pitamdey, nareshbheda, ketanniruke, desrosj. Fixes #62434. Built from https://develop.svn.wordpress.org/trunk@59407 git-svn-id: http://core.svn.wordpress.org/trunk@58793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ea47259795
commit
df05a5564f
@ -74,7 +74,9 @@ if ( isset( $_REQUEST['attachment_id'] ) && (int) $_REQUEST['attachment_id'] &&
|
||||
}
|
||||
?>
|
||||
<span class="media-item-copy-container copy-to-clipboard-container edit-attachment">
|
||||
<button type="button" class="button button-small copy-attachment-url" data-clipboard-text="<?php echo $file_url; ?>"><?php _e( 'Copy URL to clipboard' ); ?></button>
|
||||
<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>
|
||||
<span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
|
||||
</span>
|
||||
</div>
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59406';
|
||||
$wp_version = '6.8-alpha-59407';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user