WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/15/2019 01:31:07 AM (9 months ago)
Author:
azaozz
Message:

After [45538]: fix a WPCS fix and make couple of var names consistent.

See #40439.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r45538 r45539  
    236236        // fall back to the old thumbnail
    237237        $thumb_file = wp_get_attachment_thumb_file( $id );
    238         $info       = getimagesize( $thumb_file );
     238        $info       = null;
     239
     240        if ( $thumb_file ) {
     241            $info = getimagesize( $thumb_file );
     242        }
    239243
    240244        if ( $thumb_file && $info ) {
Note: See TracChangeset for help on using the changeset viewer.