[wp-trac] [WordPress Trac] #17459: wp_insert_post doesn't catch query failure
WordPress Trac
wp-trac at lists.automattic.com
Mon May 16 18:14:59 UTC 2011
#17459: wp_insert_post doesn't catch query failure
--------------------------+-----------------------------
Reporter: lonnylot | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
When we insert the post into the DB in wp-includes/post.php on line 2565
we check to see if the return is === false. $wpdb->insert will NEVER
return false. It will only return -1 or the number of affected rows.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17459>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list