WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4/src/wp-includes/embed-template.php

    r35689 r36147  
    5151
    5252            $meta = wp_get_attachment_metadata( $thumbnail_id );
    53             if ( is_array( $meta ) ) {
     53            if ( ! empty( $meta['sizes'] ) ) {
    5454                foreach ( $meta['sizes'] as $size => $data ) {
    5555                    if ( $data['width'] / $data['height'] > $aspect_ratio ) {
Note: See TracChangeset for help on using the changeset viewer.