diff --git a/wp-includes/media.php b/wp-includes/media.php
index 05f6b831bd..d6994f7d1a 100644
--- a/wp-includes/media.php
+++ b/wp-includes/media.php
@@ -322,7 +322,7 @@ function gallery_shortcode($attr) {
");
foreach ( $attachments as $id => $attachment ) {
- $link = get_the_attachment_link($id, true, array(128, 96), true);
+ $link = get_the_attachment_link($id, false, array(128, 96), true);
$output .= "
$link