#41513 closed enhancement (fixed)
Pass $wp_error param to wp_insert_attachment() inside wp_update_post()
| Reported by: | MyThemeShop | Owned by: | dd32 |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.1 |
| Component: | Posts, Post Types | Version: | 4.9 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.