WordPress.org

Make WordPress Core

Ticket #21004: 21004.patch

File 21004.patch, 594 bytes (added by SergeyBiryukov, 23 months ago)
  • wp-admin/includes/image-edit.php

     
    352352function stream_preview_image($post_id) { 
    353353        $post = get_post($post_id); 
    354354        @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', WP_MAX_MEMORY_LIMIT ) ); 
    355         $img = load_image_to_edit( $post_id, $post->post_mime_type, array(400, 400) ); 
     355        $img = load_image_to_edit( $post_id, $post->post_mime_type ); 
    356356 
    357357        if ( !is_resource($img) ) 
    358358                return false;