[wp-trac] [WordPress Trac] #37813: Missing $wp_error parameter for wp_insert_attachment
WordPress Trac
noreply at wordpress.org
Sat Aug 27 17:24:59 UTC 2016
#37813: Missing $wp_error parameter for wp_insert_attachment
--------------------------------------+--------------------------
Reporter: grapplerulrich | Owner: johnbillion
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.7
Component: Media | Version: 2.0
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+--------------------------
Changes (by johnbillion):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"38408"]:
{{{
#!CommitTicketReference repository="" revision="38408"
Media: Add a `$wp_error` parameter to `wp_insert_attachment()` to give it
parity with `wp_insert_post()`.
Fixes #37813
Props grapplerulrich, mrahmadawais
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37813#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list