From 6f2f139645eb20a4b3e4bc927594f0f302a9ea65 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 13 Oct 2012 06:46:17 +0000 Subject: [PATCH] Fix typo and don't always return false from image_make_intermediate_size(). props gandham, see #22181. git-svn-id: http://core.svn.wordpress.org/trunk@22225 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index 156d6ca6c2..1dadc48ecb 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -383,7 +383,7 @@ function image_make_intermediate_size( $file, $width, $height, $crop = false ) { if ( $width || $height ) { $editor = WP_Image_Editor::get_instance( $file ); - if ( is_wp_error( $editor ) || is_wp_error( $editor->resize( $width, $height, $crop ) ) ); + if ( is_wp_error( $editor ) || is_wp_error( $editor->resize( $width, $height, $crop ) ) ) return false; $resized_file = $editor->save();