WordPress.org

Make WordPress Core

Ticket #34599: 34599.2.diff

File 34599.2.diff, 343 bytes (added by skithund, 6 years ago)
  • image.php

    old new  
    194194        }
    195195
    196196        // Remove the blob of binary data from the array.
    197         unset( $metadata['image']['data'] );
     197        if ( $metadata ) {
     198                unset( $metadata['image']['data'] );
     199        }
    198200
    199201        /**
    200202         * Filter the generated attachment meta data.