WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-includes/feed.php

    r10150 r10387  
    224224 * @subpackage Feed
    225225 * @since unknown
    226  */
    227 function comment_guid() {
    228     echo get_comment_guid();
     226 *
     227 * @param int|object $comment_id Optional comment object or id. Defaults to global comment object.
     228 */
     229function comment_guid($comment_id = null) {
     230    echo get_comment_guid($comment_id);
    229231}
    230232
     
    236238 * @since unknown
    237239 *
     240 * @param int|object $comment_id Optional comment object or id. Defaults to global comment object.
    238241 * @return bool|string false on failure or guid for comment on success.
    239242 */
    240 function get_comment_guid() {
    241     global $comment;
     243function get_comment_guid($comment_id = null) {
     244    $comment = get_comment($comment_id);
    242245
    243246    if ( !is_object($comment) )
     
    253256 */
    254257function comment_link() {
    255     echo get_comment_link();
     258    echo clean_url( get_comment_link() );
    256259}
    257260
Note: See TracChangeset for help on using the changeset viewer.