[wp-trac] [WordPress Trac] #34956: The default for the `comment_post_ID` in `wp_insert_comment` should be `0` not an empty string

WordPress Trac noreply at wordpress.org
Tue Dec 15 15:12:52 UTC 2015


#34956: The default for the `comment_post_ID` in `wp_insert_comment` should be `0`
not an empty string
----------------------------------------+--------------------------
 Reporter:  rachelbaker                 |       Owner:  rachelbaker
     Type:  defect (bug)                |      Status:  closed
 Priority:  normal                      |   Milestone:  4.5
Component:  Comments                    |     Version:  4.0
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+--------------------------
Changes (by rachelbaker):

 * owner:   => rachelbaker
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"35948"]:
 {{{
 #!CommitTicketReference repository="" revision="35948"
 Comments: Use an integer as the default value for `comment_post_ID` in
 `wp_insert_comment` to match database column.

 Props MikeHansenMe, juanfra, rabmalin.
 Fixes #34956
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34956#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list