mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Make RSS 2.0 comment feed GUIDs immutable. fixes #5072
git-svn-id: https://develop.svn.wordpress.org/trunk@6742 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -79,6 +79,19 @@ function the_permalink_rss() {
|
||||
|
||||
}
|
||||
|
||||
function comment_guid() {
|
||||
echo get_comment_guid();
|
||||
}
|
||||
|
||||
function get_comment_guid() {
|
||||
global $comment;
|
||||
|
||||
if ( !is_object($comment) )
|
||||
return false;
|
||||
|
||||
return get_the_guid($comment->comment_post_ID) . '#comment-' . $comment->comment_ID;
|
||||
}
|
||||
|
||||
function comment_link() {
|
||||
echo get_comment_link();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user