diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 9e654aaaeb..519e307764 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -452,6 +452,8 @@ function get_attachment_link( $post = null, $leavename = false ) { * Filters the permalink for an attachment. * * @since 2.0.0 + * @since 5.6.0 Providing an empty string will now disable + * the view attachment page link on the media modal. * * @param string $link The attachment's permalink. * @param int $post_id Attachment ID. diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index c2b87b28af..9908843b98 100644 --- a/wp-includes/media-template.php +++ b/wp-includes/media-template.php @@ -514,11 +514,19 @@ function wp_print_media_templates() {
- - <# if ( data.can.save ) { #> | + <# if ( data.link ) { #> + + <# } #> + <# if ( data.can.save ) { #> + <# if ( data.link ) { #> + | + <# } #> <# } #> - <# if ( ! data.uploading && data.can.remove ) { #> | + <# if ( ! data.uploading && data.can.remove ) { #> + <# if ( data.link || data.can.save ) { #> + | + <# } #> <# if ( 'trash' === data.status ) { #> diff --git a/wp-includes/version.php b/wp-includes/version.php index e733e4cc44..1853b562ee 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-49221'; +$wp_version = '5.6-alpha-49222'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.