Index: src/wp-includes/link-template.php =================================================================== --- src/wp-includes/link-template.php (revision 49123) +++ src/wp-includes/link-template.php (working copy) @@ -452,6 +452,8 @@ * 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. Index: src/wp-includes/media-template.php =================================================================== --- src/wp-includes/media-template.php (revision 49123) +++ src/wp-includes/media-template.php (working copy) @@ -511,11 +511,19 @@