Browse files

Ensure appropriate-sized previews are used.

  • Loading branch information...
1 parent 4846f56 commit 63ec6ab4b5b240f37ad7103086e0ee5a8e15e213 Michael Sisk committed Feb 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 -/php/posts.php
View
2 -/php/posts.php
@@ -638,7 +638,7 @@ public static function ajax_media_preview( $id ) {
echo '<style scoped>.insert-media img{vertical-align:bottom}</style><a href="#" class="insert-media">';
foreach ( $attachments as $attachment ) {
- echo isset( $_wp_additional_image_sizes[ 'post-thumbnail' ] ) ? wp_get_attachment_image( $attachment->ID, 'post-thumbnail' ) : wp_get_attachment_image( $attachment->ID, array( $content_width, $content_width ) );
+ echo wp_get_attachment_image( $attachment->ID, array( $content_width, $content_width ) );
}
echo '</a>';

0 comments on commit 63ec6ab

Please sign in to comment.