wp_crop_image() and image_resize() are inconsistent. Both should return WP_Error objects on error.
|Reported by:||mdawaffe||Owned by:||westi|
wp_crop_image() returns a string on error. resize_image() returns a WP_Error object.
Both use wp_load_image() and should have consistent return values.
Attached. Assigned to 2.9. 2.8?
I also think wp_load_image() should return a WP_Error object instead of a string on error, but maybe that's a separate ticket.
Change History (5)
- Keywords early added
- Milestone changed from 2.9 to 3.0
- Owner set to westi
- Status changed from new to accepted