#22824 closed defect (bug) (fixed)
multi_resize can cause fatal if individual _save(s) fail
| Reported by: | dh-shredder | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Media | Version: | 3.5 |
| Severity: | critical | Keywords: | has-patch |
| Cc: | Focuses: |
Description
multi_resize is not properly checking for WP_Error after a save before dereferencing the metadata returned from _save(). This can cause a fatal error (due to dereferencing a WP_Error) if one of the individual saves fails.
This is a regression to the previous behavior in 3.4.2
Patch attached fixes this by moving the array access/unset into the ! is_wp_error() check.
Attachments (1)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Looked and tested the patch and it's good