[wp-trac] [WordPress Trac] #18266: WordPress does not signal DB errors when adding/updating post
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 27 05:56:19 UTC 2011
#18266: WordPress does not signal DB errors when adding/updating post
--------------------------+-----------------------------
Reporter: sirzooro | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.2.1
Severity: normal | Keywords: needs-patch
--------------------------+-----------------------------
WordPress does not signal DB errors when adding/updating post. As I
checked, `edit_post()` (defined in wp-admin/includes/post.php) calls
`wp_update_post()` but does not check if it returned error. Therefore end
user never gets any error message.
I found this when I tried to replace valid SQL query with some invalid
one, in order to stop insert operation when custom validation done in
`wp_insert_post_data` hook failed.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18266>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list