From ac0cb7a37b95dda2f254a67116bcf6a951dfe31f Mon Sep 17 00:00:00 2001 From: joedolson Date: Fri, 27 Jan 2023 23:07:13 +0000 Subject: [PATCH] Media: Add download link to media modal and attachment details. Make it easier for users to download their uploaded media by providing a download link on the attachment details screen and in the media modal. Props countrymusicchicago, joedolson, amin7 Fixes #41474. Built from https://develop.svn.wordpress.org/trunk@55156 git-svn-id: http://core.svn.wordpress.org/trunk@54689 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 3 +++ wp-includes/media-template.php | 4 ++++ wp-includes/version.php | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 0938257da7..479da24820 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -3336,6 +3336,9 @@ function attachment_submitbox_metadata() { +
+ +
diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index 8de6170da9..7ec8e0c429 100644 --- a/wp-includes/media-template.php +++ b/wp-includes/media-template.php @@ -529,6 +529,10 @@ function wp_print_media_templates() { <# } #> <# } #> + <# if ( data.can.save && data.link ) { #> + | + + <# } #> <# if ( ! data.uploading && data.can.remove ) { #> <# if ( data.link || data.can.save ) { #> | diff --git a/wp-includes/version.php b/wp-includes/version.php index 8c55c49350..00c927ae83 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55155'; +$wp_version = '6.2-alpha-55156'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.