Ticket #36239: 36239.diff
File 36239.diff, 801 bytes (added by , 4 years ago) |
---|
-
src/wp-includes/theme-compat/embed-content.php
39 39 $meta = wp_get_attachment_metadata( $thumbnail_id ); 40 40 if ( ! empty( $meta['sizes'] ) ) { 41 41 foreach ( $meta['sizes'] as $size => $data ) { 42 if ( $data['height'] > 0 && $data['width'] / $data['height'] > $aspect_ratio ) {42 if ( $data['height'] > 0 && ( $data['height'] > 150 || $data['width'] > 150 ) && $data['width'] / $data['height'] > $aspect_ratio ) { 43 43 $aspect_ratio = $data['width'] / $data['height']; 44 44 $measurements = array( $data['width'], $data['height'] ); 45 45 $image_size = $size;