WordPress.org

Make WordPress Core

Ticket #24508: comment-template.diff

File comment-template.diff, 1.0 KB (added by nofearinc, 11 months ago)

comment template comments enhancement

  • comment-template.php

     
    137137 
    138138/** 
    139139 * Retrieve the html link to the url of the author of the current comment. 
     140 *  
     141 * Both get_comment_author_url() and get_comment_author() rely on get_comment() 
     142 * which has a fallback to the global comment variable if the $comment_ID argument is empty. 
    140143 * 
    141144 * @since 1.5.0 
    142145 * @uses apply_filters() Calls 'get_comment_author_link' hook on the complete link HTML or author 
    143  * 
     146 * @see get_comment() fetching the comment object 
     147 *  
    144148 * @param int $comment_ID The ID of the comment for which to get the author's link. Optional. 
    145149 * @return string Comment Author name or HTML link for author's URL 
    146150 */ 
    147151function get_comment_author_link( $comment_ID = 0 ) { 
    148         /** @todo Only call these functions when they are needed. Include in if... else blocks */ 
    149152        $url    = get_comment_author_url( $comment_ID ); 
    150153        $author = get_comment_author( $comment_ID ); 
    151154