Ticket #22101: 22101.2.diff
File 22101.2.diff, 1.1 KB (added by , 8 years ago) |
---|
-
src/wp-includes/media.php
1701 1701 if ( is_feed() ) { 1702 1702 $output = "\n"; 1703 1703 foreach ( $attachments as $att_id => $attachment ) { 1704 $output .= wp_get_attachment_link( $att_id, $atts['size'], true ) . "\n"; 1704 if ( ! empty( $atts['link'] ) ) { 1705 if( 'none' === $atts['link'] ) { 1706 $output .= wp_get_attachment_image( $att_id, $atts['size'], false, $attr ); 1707 } else { 1708 $output .= wp_get_attachment_link( $att_id, $atts['size'], false ); 1709 } 1710 } else { 1711 $output .= wp_get_attachment_link( $att_id, $atts['size'], true ); 1712 } 1713 $output .= "\n"; 1705 1714 } 1706 1715 return $output; 1707 1716 } … … 3742 3751 if ( 'gallery' === $shortcode[2] ) { 3743 3752 $srcs = array(); 3744 3753 3745 $shortcode_attrs = shortcode_parse_atts( $shortcode[3] ); 3754 $shortcode_attrs = shortcode_parse_atts( $shortcode[3] ); 3746 3755 if ( ! is_array( $shortcode_attrs ) ) { 3747 3756 $shortcode_attrs = array(); 3748 3757 }