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();