Use dc:creator instead of author for rss2 comment feeds. Props lexhair, Otto42. fixes #4704 for 2.3
git-svn-id: https://develop.svn.wordpress.org/trunk@5881 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ff86e9f0c2
commit
641e19c977
@ -5,7 +5,9 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
|
|||||||
?>
|
?>
|
||||||
<!-- generator="wordpress/<?php echo $wp_version ?>" -->
|
<!-- generator="wordpress/<?php echo $wp_version ?>" -->
|
||||||
<rss version="2.0"
|
<rss version="2.0"
|
||||||
xmlns:content="http://purl.org/rss/1.0/modules/content/">
|
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
>
|
||||||
<channel>
|
<channel>
|
||||||
<title><?php
|
<title><?php
|
||||||
if ( is_singular() )
|
if ( is_singular() )
|
||||||
@ -36,7 +38,7 @@ if ( have_comments() ) : while ( have_comments() ) : the_comment();
|
|||||||
}
|
}
|
||||||
?></title>
|
?></title>
|
||||||
<link><?php comment_link() ?></link>
|
<link><?php comment_link() ?></link>
|
||||||
<author><?php echo get_comment_author_rss() ?></author>
|
<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>
|
<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><?php comment_link() ?></guid>
|
<guid><?php comment_link() ?></guid>
|
||||||
<?php if (!empty($comment_post->post_password) && $_COOKIE['wp-postpass'] != $comment_post->post_password) : ?>
|
<?php if (!empty($comment_post->post_password) && $_COOKIE['wp-postpass'] != $comment_post->post_password) : ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user