[wp-trac] [WordPress Trac] #8736: Gallery shortcode call gets wrong
thumbnail sizes
WordPress Trac
wp-trac at lists.automattic.com
Sun Dec 28 00:56:49 GMT 2008
#8736: Gallery shortcode call gets wrong thumbnail sizes
--------------------------+-------------------------------------------------
Reporter: alexramirez | Owner: anonymous
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
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 ;-)
--
Ticket URL: <http://trac.wordpress.org/ticket/8736>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list