Changeset 41902
- Timestamp:
- 10/18/2017 03:08:58 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme-compat/embed-content.php
r41565 r41902 40 40 if ( ! empty( $meta['sizes'] ) ) { 41 41 foreach ( $meta['sizes'] as $size => $data ) { 42 if ( $data[' width'] / $data['height'] > $aspect_ratio ) {42 if ( $data['height'] > 0 && $data['width'] / $data['height'] > $aspect_ratio ) { 43 43 $aspect_ratio = $data['width'] / $data['height']; 44 44 $measurements = array( $data['width'], $data['height'] );
Note: See TracChangeset
for help on using the changeset viewer.