diff --git a/wp-includes/media.php b/wp-includes/media.php index da8e2c9059..0c3fd2251f 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1049,7 +1049,7 @@ function gallery_shortcode( $attr ) { $attr = ( trim( $attachment->post_excerpt ) ) ? array( 'aria-describedby' => "$selector-$id" ) : ''; if ( ! empty( $atts['link'] ) && 'file' === $atts['link'] ) { - $image_output = wp_get_attachment_link( $id, $atts['size'], false, false, $attr ); + $image_output = wp_get_attachment_link( $id, $atts['size'], false, false, false, $attr ); } elseif ( ! empty( $atts['link'] ) && 'none' === $atts['link'] ) { $image_output = wp_get_attachment_image( $id, $atts['size'], false, $attr ); } else { diff --git a/wp-includes/version.php b/wp-includes/version.php index 2f60685cd0..e4ff6f0382 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-30160'; +$wp_version = '4.1-alpha-30161'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.