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