Make WordPress Core


Ignore:
Timestamp:
11/20/2008 07:10:31 PM (17 years ago)
Author:
ryan
Message:

Use post_password_required()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed-rss2-comments.php

    r8619 r9819  
    5252        <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_comment_time('Y-m-d H:i:s', true), false); ?></pubDate>
    5353        <guid isPermaLink="false"><?php comment_guid() ?></guid>
    54 <?php if (!empty($comment_post->post_password) && $_COOKIE['wp-postpass'] != $comment_post->post_password) : ?>
     54<?php if ( post_password_required($comment_post) ) : ?>
    5555        <description><?php _e('Protected Comments: Please enter your password to view comments.'); ?></description>
    5656        <content:encoded><![CDATA[<?php echo get_the_password_form() ?>]]></content:encoded>
Note: See TracChangeset for help on using the changeset viewer.