[wp-trac] [WordPress Trac] #17459: wp_insert_post doesn't catch query failure

WordPress Trac wp-trac at lists.automattic.com
Mon May 16 20:01:04 UTC 2011


#17459: wp_insert_post doesn't catch query failure
--------------------------+----------------------
 Reporter:  lonnylot      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------
Changes (by scribu):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 This is simply not true. $wpdb->insert() returns FALSE on error.

 -1 is usually returned in an AJAX request, so something else is going on
 in your case.

 Please use the support forums: http://wordpress.org/support/

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17459#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list