Ticket #6064: attachment_icon_gallery_fix.2.diff
| File attachment_icon_gallery_fix.2.diff, 926 bytes (added by , 19 years ago) |
|---|
-
wp-includes/shortcodes.php
167 167 "; 168 168 169 169 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]; 172 if ( strpos($src, get_bloginfo('home').'/wp-includes/images/crystal') === 0 ) $isimage = 'file'; 173 else $isimage = 'image'; 171 174 $href = get_attachment_link($id); 172 175 $output .= " 173 176 <div> 174 <a href='$href'><img src='$src' alt='$attachment->post_title' /></a>177 <a href='$href'><img src='$src' alt='$attachment->post_title' class='$isimage' /></a> 175 178 </div> 176 179 "; 177 180 if ( ++$i % 3 == 0 ) … … 179 182 } 180 183 181 184 $output .= " 182 <br style='clear: both;' >185 <br style='clear: both;' /> 183 186 </div> 184 187 "; 185 188
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)