- File:
-
- 1 edited
-
trunk/wp-admin/includes/image-edit.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/image-edit.php
r16377 r12823 202 202 203 203 if ( $filepath && file_exists($filepath) ) { 204 if ( 'full' != $size && ( $data = image_get_intermediate_size($post_id, $size) ) ) { 205 $filepath = apply_filters('load_image_to_edit_filesystempath', path_join( dirname($filepath), $data['file'] ), $post_id, $size); 206 } 204 if ( 'full' != $size && ( $data = image_get_intermediate_size($post_id, $size) ) ) 205 $filepath = path_join( dirname($filepath), $data['file'] ); 207 206 } elseif ( WP_Http_Fopen::test() ) { 208 $filepath = apply_filters('load_image_to_edit_attachmenturl', wp_get_attachment_url($post_id) , $post_id, $size);207 $filepath = wp_get_attachment_url($post_id); 209 208 } 210 209 … … 423 422 $backup_sizes = get_post_meta( $post_id, '_wp_attachment_backup_sizes', true ); 424 423 $restored = false; 425 $msg = new stdClass;424 $msg = ''; 426 425 427 426 if ( !is_array($backup_sizes) ) { … … 494 493 495 494 function wp_save_image($post_id) { 496 $return = new stdClass;495 $return = ''; 497 496 $success = $delete = $scaled = $nocrop = false; 498 497 $post = get_post($post_id);
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)