Make WordPress Core

Changeset 9819


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

Use post_password_required()

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r9818 r9819  
    6767        <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_comment_time('Y-m-d H:i:s', true), false); ?></updated>
    6868        <published><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_comment_time('Y-m-d H:i:s', true), false); ?></published>
    69 <?php if ( post_password_required() ) : ?>
     69<?php if ( post_password_required($comment_post) ) : ?>
    7070        <content type="html" xml:base="<?php comment_link(); ?>"><![CDATA[<?php echo get_the_password_form(); ?>]]></content>
    7171<?php else : // post pass ?>
  • 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.