From 1b6cda0c4886efd478edd889581ffbf6172a7de8 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 12 Apr 2012 21:02:24 +0000 Subject: [PATCH] Use correct var name. Props mattonomics. fixes #20432 git-svn-id: https://develop.svn.wordpress.org/trunk@20454 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 2a251d53ee..6ef57ceed5 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 ) )