WordPress.org

Make WordPress Core

Ticket #33641: 33641.5.patch

File 33641.5.patch, 491 bytes (added by kraftbj, 6 years ago)

A better version of .4.

  • src/wp-includes/media.php

     
    999999                list( $img_width, $img_height ) = image_constrain_size_for_editor( $img['width'], $img['height'], $size );
    10001000        }
    10011001
    1002         // Bail early if $image_width isn't set.
    1003         if ( ! $img_width ) {
     1002        // Bail early if $img_width isn't set.
     1003        if ( empty( $img_width ) ) {
    10041004                return false;
    10051005        }
    10061006