Ticket #6821: 6821.13.diff
File 6821.13.diff, 706 bytes (added by , 8 years ago) |
---|
-
wp-admin/includes/image.php
30 30 if ( ! file_exists( $src_file ) ) { 31 31 // If the file doesn't exist, attempt a url fopen on the src link. 32 32 // This can occur with certain file replication plugins. 33 $src_file = _load_image_to_edit_path( $src, 'full' ); 33 $src = _load_image_to_edit_path( $src, 'full' ); 34 } else { 35 $src = $src_file; 34 36 } 35 37 } 36 38 37 $editor = WP_Image_Editor::get_instance( $src _file);39 $editor = WP_Image_Editor::get_instance( $src ); 38 40 if ( is_wp_error( $editor ) ) 39 41 return $editor; 40 42