From 54b3b79deaa0514fb5f9acde9c9614091298f087 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 12 Apr 2012 21:02:24 +0000 Subject: [PATCH] Use correct var name. Props mattonomics. fixes #20432 git-svn-id: http://svn.automattic.com/wordpress/trunk@20454 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index 2a251d53e..6ef57ceed 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -32,7 +32,7 @@ function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) { * * @since 2.1.0 * - * @param string|int $src_file The source file or Attachment ID. + * @param string|int $src The source file or Attachment ID. * @param int $src_x The start x position to crop from. * @param int $src_y The start y position to crop from. * @param int $src_w The width to crop. @@ -55,7 +55,7 @@ function wp_crop_image( $src, $src_x, $src_y, $src_w, $src_h, $dst_w, $dst_h, $s $src = wp_load_image( $src_file ); } } else { - $src = wp_load_image( $src_file ); + $src = wp_load_image( $src ); } if ( ! is_resource( $src ) )