WordPress.org

Make WordPress Core

Ticket #6064: attachment_icon_gallery_fix.diff

File attachment_icon_gallery_fix.diff, 598 bytes (added by Nightgunner5, 6 years ago)
  • wp-includes/shortcodes.php

     
    167167"; 
    168168 
    169169        if ( !empty($attachments) ) foreach ( $attachments as $id => $attachment ) { 
    170                 $src = wp_get_attachment_thumb_url($id); 
     170                $src = get_attachment_icon_src($id); 
     171        $src = $src[0]; 
    171172                $href = get_attachment_link($id); 
    172173                $output .= " 
    173174                        <div> 
     
    179180        } 
    180181 
    181182        $output .= " 
    182                         <br style='clear: both;' > 
     183                        <br style='clear: both;' /> 
    183184                </div> 
    184185"; 
    185186