#23325 closed defect (bug) (fixed)
wp_crop_image does not return WP_Error when save fails
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | normal | Version: | 3.5 |
Component: | Media | Keywords: | has-patch commit needs-codex |
Focuses: | Cc: |
Description
wp_crop_image() assigns
$result = $editor->save( $dst_file );
but never actually tests/returns if $result is WP_Error
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
That is indeed stupid. Also you should change the PHPDocs. Normally it returned false but thats not anymore the case.