From b212ead08c84f0a768e4bc49aeb01940e47d82d3 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 16 May 2012 18:11:19 +0000 Subject: [PATCH] Remove debug cruft. Fix typo. Props SergeyBiryukov. fixes #20657 git-svn-id: http://core.svn.wordpress.org/trunk@20808 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 006fd4eb5..ce721fae7 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 );