Ticket #22181: media.patch
| File media.patch, 541 bytes (added by gandham, 7 months ago) |
|---|
-
wp-includes/media.php
old new 383 383 if ( $width || $height ) { 384 384 $editor = WP_Image_Editor::get_instance( $file ); 385 385 386 if ( is_wp_error( $editor ) || is_wp_error( $editor->resize( $width, $height, $crop ) ) ) ;386 if ( is_wp_error( $editor ) || is_wp_error( $editor->resize( $width, $height, $crop ) ) ) 387 387 return false; 388 388 389 389 $resized_file = $editor->save();
