WordPress.org

Make WordPress Core

Ticket #22181: media.patch

File media.patch, 541 bytes (added by gandham, 2 years ago)

Simple patch.

  • wp-includes/media.php

    old new  
    383383        if ( $width || $height ) { 
    384384                $editor = WP_Image_Editor::get_instance( $file ); 
    385385 
    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 ) ) ) 
    387387                        return false; 
    388388 
    389389                $resized_file = $editor->save();