WordPress.org

Make WordPress Core

Ticket #27402: 27402.5.patch

File 27402.5.patch, 729 bytes (added by bradyvercher, 6 years ago)
  • src/wp-includes/media.php

    diff --git src/wp-includes/media.php src/wp-includes/media.php
    index da8e2c9..0c3fd22 100644
    function gallery_shortcode( $attr ) { 
    10491049
    10501050                $attr = ( trim( $attachment->post_excerpt ) ) ? array( 'aria-describedby' => "$selector-$id" ) : '';
    10511051                if ( ! empty( $atts['link'] ) && 'file' === $atts['link'] ) {
    1052                         $image_output = wp_get_attachment_link( $id, $atts['size'], false, false, $attr );
     1052                        $image_output = wp_get_attachment_link( $id, $atts['size'], false, false, false, $attr );
    10531053                } elseif ( ! empty( $atts['link'] ) && 'none' === $atts['link'] ) {
    10541054                        $image_output = wp_get_attachment_image( $id, $atts['size'], false, $attr );
    10551055                } else {