Ticket #35237: 35237.diff
| File 35237.diff, 594 bytes (added by , 10 years ago) |
|---|
-
src/wp-includes/embed-template.php
diff --git src/wp-includes/embed-template.php src/wp-includes/embed-template.php index df2518f..0630d2c 100644
if ( have_posts() ) : 50 50 $image_size = 'full'; // Fallback. 51 51 52 52 $meta = wp_get_attachment_metadata( $thumbnail_id ); 53 if ( is_array( $meta ) ) {53 if ( is_array( $meta ) && is_array( $meta['sizes'] ) ) { 54 54 foreach ( $meta['sizes'] as $size => $data ) { 55 55 if ( $data['width'] / $data['height'] > $aspect_ratio ) { 56 56 $aspect_ratio = $data['width'] / $data['height'];