Ticket #20657: 20657.minor-typo-fix.patch
File 20657.minor-typo-fix.patch, 860 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/image.php
403 403 } 404 404 405 405 /** 406 * Retrieve the path or url of an attach emnt's attached file.406 * Retrieve the path or url of an attachment's attached file. 407 407 * 408 408 * If the attached file is not present on the local filesystem (usually due to replication plugins), 409 409 * then the url of the file is returned if url fopen is supported. … … 439 439 * @return string|false New file path on success, false on failure. 440 440 */ 441 441 function _copy_image_file( $attachment_id ) { 442 debug_log( 'copyin' );443 442 $dst_file = $src_file = get_attached_file( $attachment_id ); 444 443 if ( ! file_exists( $src_file ) ) 445 444 $src_file = _load_image_to_edit_path( $attachment_id );