#41513 closed enhancement (fixed)
Pass $wp_error param to wp_insert_attachment() inside wp_update_post()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.1 | Priority: | normal |
| Severity: | normal | Version: | 4.9 |
| Component: | Posts, Post Types | Keywords: | |
| Focuses: | Cc: |
Description
wp_update_post() have $wp_error param which is not passed to wp_insert_attachment() in case of attachment. It is not causing any issue in core, though, as far as I can see.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Hey @MyThemeShop
Thanks for submitting this, this seems pretty straight forward and an obvious oversight from when
wp_insert_attachment()didn't support returning aWP_Error.