summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/comment-functions.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-12-20 15:12:04 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-12-20 15:12:04 +0000
commitcc83ad3fc583dc8492842143d030ebb15275b02b (patch)
tree20b31056c7dbf1950c00808564595721d18c44fa /wp-inst/wp-includes/comment-functions.php
parent85a3cd1e5bd9e8861b2034402518891c5f905dac (diff)
downloadwordpress-mu-cc83ad3fc583dc8492842143d030ebb15275b02b.tar.gz
wordpress-mu-cc83ad3fc583dc8492842143d030ebb15275b02b.tar.xz
wordpress-mu-cc83ad3fc583dc8492842143d030ebb15275b02b.zip
WP Merge
Cache fixes git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@477 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/comment-functions.php')
-rw-r--r--wp-inst/wp-includes/comment-functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/wp-inst/wp-includes/comment-functions.php b/wp-inst/wp-includes/comment-functions.php
index a056835..21b9a99 100644
--- a/wp-inst/wp-includes/comment-functions.php
+++ b/wp-inst/wp-includes/comment-functions.php
@@ -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)