Ticket #17736: 17736.patch
File 17736.patch, 638 bytes (added by , 14 years ago) |
---|
-
wp-admin/includes/image-edit.php
646 646 647 647 if ( $target == 'thumbnail' || $target == 'all' || $target == 'full' ) { 648 648 $file_url = wp_get_attachment_url($post_id); 649 if ( $thumb = $meta['sizes']['thumbnail'] )649 if ( !empty( $meta['sizes']['thumbnail'] ) && $thumb = $meta['sizes']['thumbnail'] ) 650 650 $return->thumbnail = path_join( dirname($file_url), $thumb['file'] ); 651 651 else 652 652 $return->thumbnail = "$file_url?w=128&h=128";