WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/23/2009 06:39:31 PM (12 years ago)
Author:
ryan
Message:

Retunr WP_Error from wp_crop_image() and image_resize(). Props mdwaffe. fixes #9922

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r12411 r12524  
    356356    $image = wp_load_image( $file );
    357357    if ( !is_resource( $image ) )
    358         return new WP_Error('error_loading_image', $image);
     358        return new WP_Error( 'error_loading_image', $image, $file );
    359359
    360360    $size = @getimagesize( $file );
Note: See TracChangeset for help on using the changeset viewer.