Ticket #36838: 36838.diff
File 36838.diff, 591 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/theme-compat/embed-content.php
diff --git src/wp-includes/theme-compat/embed-content.php src/wp-includes/theme-compat/embed-content.php index 05498eb..fca4f38 100644
27 27 $image_size = 'full'; // Fallback. 28 28 29 29 $meta = wp_get_attachment_metadata( $thumbnail_id ); 30 if ( is_array( $meta) ) {30 if ( ! empty( $meta['sizes'] ) ) { 31 31 foreach ( $meta['sizes'] as $size => $data ) { 32 32 if ( $data['width'] / $data['height'] > $aspect_ratio ) { 33 33 $aspect_ratio = $data['width'] / $data['height'];