[wp-trac] [WordPress Trac] #30009: _wp_put_post_revision checks for errors incorrectly
WordPress Trac
noreply at wordpress.org
Thu Oct 16 16:29:46 UTC 2014
#30009: _wp_put_post_revision checks for errors incorrectly
--------------------------+------------------------------
Reporter: rmccue | Owner: rmccue
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Revisions | Version: 2.6
Severity: minor | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by rmccue):
* keywords: => has-patch
* owner: => rmccue
* status: new => assigned
Comment:
Attached patches specify that we want a `WP_Error` back from
`wp_insert_post`, pretty straight forward patch.
[attachment:30009.diff] fixes the problem, [attachment:30009.2.diff] goes
a bit further and corrects coding standards in the function while we're in
there.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30009#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list