multi_resize can cause fatal if individual _save(s) fail
|Reported by:||dh-shredder||Owned by:||nacin|
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.
Change History (6)
- Milestone changed from Awaiting Review to 3.5
- Severity changed from major to critical
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed