Fix typo and don't always return false from image_make_intermediate_size(). props gandham, see #22181.
git-svn-id: https://develop.svn.wordpress.org/trunk@22225 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
64849177a9
commit
70f79ffef3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user