mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Make sure comment_parent is set.
git-svn-id: https://develop.svn.wordpress.org/trunk@3331 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4957068837
commit
3dcda2fdf3
@ -74,6 +74,8 @@ function wp_insert_comment($commentdata) {
|
||||
$comment_date = current_time('mysql');
|
||||
if ( ! isset($comment_date_gmt) )
|
||||
$comment_date_gmt = gmdate('Y-m-d H:i:s', strtotime($comment_date) );
|
||||
if ( ! isset($comment_parent) )
|
||||
$comment_parent = 0;
|
||||
|
||||
$result = $wpdb->query("INSERT INTO $wpdb->comments
|
||||
(comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved, comment_agent, comment_type, comment_parent, user_id)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user