Make WordPress Core

Ticket #33641: 33641.4.patch

File 33641.4.patch, 360 bytes (added by kraftbj, 9 years ago)

checks for img_width before checking for it.

  • src/wp-includes/media.php

     
    10001000        }
    10011001
    10021002        // Bail early if $image_width isn't set.
    1003         if ( ! $img_width ) {
     1003        if ( ! isset( $img_width ) || ! $img_width ) {
    10041004                return false;
    10051005        }
    10061006