From c992db3d2294e50be6ec245cfd0ddd32a481c551 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 16 May 2012 18:11:19 +0000 Subject: [PATCH] Remove debug cruft. Fix typo. Props SergeyBiryukov. fixes #20657 git-svn-id: https://develop.svn.wordpress.org/trunk@20808 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/image.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index 006fd4eb55..ce721fae74 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -403,7 +403,7 @@ function load_image_to_edit( $attachment_id, $mime_type, $size = 'full' ) { } /** - * Retrieve the path or url of an attachemnt's attached file. + * Retrieve the path or url of an attachment's attached file. * * If the attached file is not present on the local filesystem (usually due to replication plugins), * then the url of the file is returned if url fopen is supported. @@ -439,7 +439,6 @@ function _load_image_to_edit_path( $attachment_id, $size = 'full' ) { * @return string|false New file path on success, false on failure. */ function _copy_image_file( $attachment_id ) { - debug_log( 'copyin' ); $dst_file = $src_file = get_attached_file( $attachment_id ); if ( ! file_exists( $src_file ) ) $src_file = _load_image_to_edit_path( $attachment_id );