Make WordPress Core


Ignore:
Timestamp:
02/06/2008 10:33:21 PM (17 years ago)
Author:
markjaquith
Message:

Make RSS 2.0 comment feed GUIDs immutable. fixes #5072

File:
1 edited

Legend:

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

    r6726 r6742  
    8080}
    8181
     82function comment_guid() {
     83    echo get_comment_guid();
     84}
     85
     86function get_comment_guid() {
     87    global $comment;
     88
     89    if ( !is_object($comment) )
     90        return false;
     91
     92    return get_the_guid($comment->comment_post_ID) . '#comment-' . $comment->comment_ID;
     93}
     94
    8295function comment_link() {
    8396    echo get_comment_link();
Note: See TracChangeset for help on using the changeset viewer.