Changeset 11985 for trunk/wp-admin/includes/image-edit.php
- Timestamp:
- 09/30/2009 11:39:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/image-edit.php
r11984 r11985 219 219 if ( 'full' != $size && ( $data = image_get_intermediate_size($post_id, $size) ) ) 220 220 $filepath = path_join( dirname($filepath), $data['file'] ); 221 } elseif ( function_exists('fopen') ) {221 } elseif ( WP_Http_Fopen::test() ) { 222 222 $filepath = wp_get_attachment_url($post_id); 223 223 } … … 628 628 629 629 if ( $target == 'thumbnail' || $target == 'all' || $target == 'full' ) { 630 if ( $thumb = $meta['sizes']['thumbnail'] ) {631 $file_url = wp_get_attachment_url($post_id);630 $file_url = wp_get_attachment_url($post_id); 631 if ( $thumb = $meta['sizes']['thumbnail'] ) 632 632 $return->thumbnail = path_join( dirname($file_url), $thumb['file'] ); 633 } 633 else 634 $return->thumbnail = "$file_url?w=128&h=128"; 634 635 } 635 636 } else {
Note: See TracChangeset
for help on using the changeset viewer.