Answer the question
In order to leave comments, you need to log in
Wordpress distributes the same cookies
Given:
Wordpress without mandatory registration with pre-moderation of comments.
Problem:
Since yesterday, wp began to issue the same kind of cookie to everyone:
comment_author_f5598bcb30f4c521d381770272e952eb
and now any commentator sees other people's comments that have not yet passed moderation.
Help solve the problem
Answer the question
In order to leave comments, you need to log in
cookies must be the same. The contents of the cookies must be different.
what is shown there incorrectly - you need to look at the topic, but most likely a sudden change in behavior is the result of an incorrect filter or hook in some plugin thread.
It seems that something with COOKIEHASH. You have to see why it's the same for everyone. Here is a piece of code from wp-comments-post.php:
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);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question