Gallery shortcode call gets wrong thumbnail sizes
|Reported by:||alexramirez||Owned by:|
In WP 2.7, when using the simple shortcode call ("[gallery]") in the template, the HTML obtained does not include the thumbnail size (files should end with "-150x150.jpg"), but the original size is returned.
In wp-includes/wp_get_attachment_link, the function wp_get_attachment_link has the default size parameter ("thumbnail"), but the $link_text = wp_get_attachment_image() call seems to obtain wrong results.
The $link_text variable does not have any thumbnail size in the images displayed.
Previous versions of WP worked correctly.
A hack such as :
$link_text = str_replace('.jpg" class="attachment-thumbnail"','-150x150.jpg" class="attachment-thumbnail"',$link_text);
gets the correct thumbnails displayed, but is clearly not a solution ;-)
Change History (12)
- Milestone Unassigned deleted
- Resolution wontfix deleted
- Status changed from closed to reopened