Use post_password_required()
git-svn-id: http://svn.automattic.com/wordpress/trunk@9819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5783e5ff6e
commit
ed01be1927
|
@ -66,7 +66,7 @@ if ( have_comments() ) : while ( have_comments() ) : the_comment();
|
|||
<id><?php comment_link(); ?></id>
|
||||
<updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_comment_time('Y-m-d H:i:s', true), false); ?></updated>
|
||||
<published><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_comment_time('Y-m-d H:i:s', true), false); ?></published>
|
||||
<?php if ( post_password_required() ) : ?>
|
||||
<?php if ( post_password_required($comment_post) ) : ?>
|
||||
<content type="html" xml:base="<?php comment_link(); ?>"><![CDATA[<?php echo get_the_password_form(); ?>]]></content>
|
||||
<?php else : // post pass ?>
|
||||
<content type="html" xml:base="<?php comment_link(); ?>"><![CDATA[<?php comment_text(); ?>]]></content>
|
||||
|
|
|
@ -51,7 +51,7 @@ if ( have_comments() ) : while ( have_comments() ) : the_comment();
|
|||
<dc:creator><?php echo get_comment_author_rss() ?></dc:creator>
|
||||
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_comment_time('Y-m-d H:i:s', true), false); ?></pubDate>
|
||||
<guid isPermaLink="false"><?php comment_guid() ?></guid>
|
||||
<?php if (!empty($comment_post->post_password) && $_COOKIE['wp-postpass'] != $comment_post->post_password) : ?>
|
||||
<?php if ( post_password_required($comment_post) ) : ?>
|
||||
<description><?php _e('Protected Comments: Please enter your password to view comments.'); ?></description>
|
||||
<content:encoded><![CDATA[<?php echo get_the_password_form() ?>]]></content:encoded>
|
||||
<?php else : // post pass ?>
|
||||
|
|
Loading…
Reference in New Issue