Make WordPress Core


Ignore:
Timestamp:
10/20/2003 08:53:13 PM (22 years ago)
Author:
emc3
Message:

Cookies are now unique, based on siteurl, allowing multiple installs under a single domain name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2commentspopup.php

    r457 r458  
    3232$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id ORDER BY comment_date");
    3333$commentstatus = $wpdb->get_row("SELECT comment_status, post_password FROM $tableposts WHERE ID = $id");
    34 if (!empty($commentstatus->post_password) && $HTTP_COOKIE_VARS['wp-postpass'] != $commentstatus->post_password) {  // and it doesn't match the cookie
     34if (!empty($commentstatus->post_password) && $HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $commentstatus->post_password) {  // and it doesn't match the cookie
    3535    echo("<li>".get_the_password_form()."</li></ol>");
    3636}
Note: See TracChangeset for help on using the changeset viewer.