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

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 8 15:40:03 UTC 2011


#17459: wp_insert_post doesn't catch query failure
--------------------------+------------------------------
 Reporter:  lonnylot      |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by lonnylot):

 I was looking at the code again and believe I was wrong w/ my initial
 statement. Before the call to mysql_affected_rows() there is a call to
 mysql_error() that will return false on an error. IMO this can be
 closed/deleted

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


More information about the wp-trac mailing list