summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-comments-post.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-09-05 09:27:09 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-09-05 09:27:09 +0000
commita4d6e4072b70beecc76032f95bd0752f59e696c4 (patch)
tree2331ebd0ff565eb92c94c3716f3bffd5b448c17a /wp-inst/wp-comments-post.php
parent54e48001b1117ad75a255daa12cbf65fe7b2432a (diff)
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@286 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-comments-post.php')
-rw-r--r--wp-inst/wp-comments-post.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/wp-inst/wp-comments-post.php b/wp-inst/wp-comments-post.php
index f354c58..3440ae8 100644
--- a/wp-inst/wp-comments-post.php
+++ b/wp-inst/wp-comments-post.php
@@ -48,9 +48,11 @@ $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_emai
wp_new_comment($commentdata);
-setcookie('comment_author_' . COOKIEHASH, stripslashes($comment_author), time() + 30000000, COOKIEPATH);
-setcookie('comment_author_email_' . COOKIEHASH, stripslashes($comment_author_email), time() + 30000000, COOKIEPATH);
-setcookie('comment_author_url_' . COOKIEHASH, stripslashes($comment_author_url), time() + 30000000, COOKIEPATH);
+if ( !$user_ID ) :
+ setcookie('comment_author_' . COOKIEHASH, stripslashes($comment_author), time() + 30000000, COOKIEPATH, COOKIE_DOMAIN);
+ setcookie('comment_author_email_' . COOKIEHASH, stripslashes($comment_author_email), time() + 30000000, COOKIEPATH, COOKIE_DOMAIN);
+ setcookie('comment_author_url_' . COOKIEHASH, stripslashes($comment_author_url), time() + 30000000, COOKIEPATH, COOKIE_DOMAIN);
+endif;
nocache_headers();