Changeset 37455 for branches/4.5
- Timestamp:
- 05/17/2016 08:37:10 PM (9 years ago)
- Location:
- branches/4.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5
-
branches/4.5/src/wp-includes/theme-compat/embed-content.php
r37087 r37455 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 ) {
Note: See TracChangeset
for help on using the changeset viewer.