Make WordPress Core


Ignore:
Timestamp:
09/03/2008 07:54:14 PM (17 years ago)
Author:
ryan
Message:

post_password_required(). fixes #7679

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/default/comments-popup.php

    r7450 r8800  
    3434$comments = get_approved_comments($id);
    3535$post = get_post($id);
    36 if (!empty($post->post_password) && $_COOKIE['wp-postpass_'. COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie
     36if ( post_password_required($post) ) {  // and it doesn't match the cookie
    3737    echo(get_the_password_form());
    3838} else { ?>
Note: See TracChangeset for help on using the changeset viewer.