Message info
 
To:wp-svn@lists.automattic.com From:m@wordpress.org Subject:[wp-svn] [20808] trunk/wp-admin/includes/image.php: Remove debug cruft. Date:Wed, 16 May 2012 18:11:19 +0000 (UTC)
 

Revision
20808
Author
ryan
Date
2012-05-16 18:11:19 +0000 (Wed, 16 May 2012)

Log Message

Remove debug cruft. Fix typo. Props SergeyBiryukov. fixes #20657

Modified Paths

Diff

Modified: trunk/wp-admin/includes/image.php (20807 => 20808)


--- trunk/wp-admin/includes/image.php	2012-05-16 18:06:34 UTC (rev 20807)
+++ trunk/wp-admin/includes/image.php	2012-05-16 18:11:19 UTC (rev 20808)
@@ -403,7 +403,7 @@
 }
 
 /**
- * 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 @@
  * @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 );