Make WordPress Core

Ticket #6074: 6074-2.diff

File 6074-2.diff, 392 bytes (added by andy, 19 years ago)

image_downsize: Do not return attachment file URL as thumbnail if not an image

  • wp-includes/media.php

     
    7373                        $width = $info[0];
    7474                        $height = $info[1];
    7575                }
     76                else
     77                        return false;
    7678        }
    7779        elseif ( isset($meta['width'], $meta['height']) ) {
    7880                // any other type: use the real image and constrain it