Opened 11 years ago
Closed 11 years ago
#28254 closed defect (bug) (fixed)
Comment posting doesn't handle the INSERT failing
Reported by: | pento | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 1.5 |
Component: | Comments | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
When adding a comment, it's possible for the $wpdb->insert()
call in wp_insert_comment()
to fail. This isn't checked, and the rest of the process assumes the comment was successfully inserted.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
attachment:28254.diff checks the return value, and dies if the comment wasn't inserted.