mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Cookies are now unique, based on siteurl, allowing multiple installs under a single domain name.
git-svn-id: https://develop.svn.wordpress.org/trunk@458 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4,15 +4,15 @@
|
||||
if (($withcomments) or ($c)) {
|
||||
|
||||
if (!empty($post->post_password)) { // if there's a password
|
||||
if ($HTTP_COOKIE_VARS['wp-postpass'] != $post->post_password) { // and it doesn't match the cookie
|
||||
if ($HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie
|
||||
echo("<p>Enter your password to view comments.<p>");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$comment_author = trim($HTTP_COOKIE_VARS["comment_author"]);
|
||||
$comment_author_email = trim($HTTP_COOKIE_VARS["comment_author_email"]);
|
||||
$comment_author_url = trim($HTTP_COOKIE_VARS["comment_author_url"]);
|
||||
$comment_author = trim($HTTP_COOKIE_VARS["comment_author_".$cookiehash]);
|
||||
$comment_author_email = trim($HTTP_COOKIE_VARS["comment_author_email_".$cookiehash]);
|
||||
$comment_author_url = trim($HTTP_COOKIE_VARS["comment_author_url_".$cookiehash]);
|
||||
|
||||
$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id ORDER BY comment_date");
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user