comment_author_link

The timeline below displays how wordpress function comment_author_link has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.2

/**
 * Displays the HTML link to the URL of the author of the current comment.
 *
 * @since 0.71
 * @since 4.4.0 Added the ability for `$comment_id` to also accept a WP_Comment object.
 *
 * @param int|WP_Comment $comment_id Optional. WP_Comment or the ID of the comment for which to print the author's link.
 *                                   Default current comment.
 */
function comment_author_link($comment_id = 0)
{
    echo get_comment_author_link($comment_id);
}

WordPress Version: 5.4

/**
 * Displays the HTML link to the URL of the author of the current comment.
 *
 * @since 0.71
 * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object.
 *
 * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's link.
 *                                   Default current comment.
 */
function comment_author_link($comment_ID = 0)
{
    echo get_comment_author_link($comment_ID);
}

WordPress Version: 5.1

/**
 * Display the html link to the url of the author of the current comment.
 *
 * @since 0.71
 * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object.
 *
 * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's link.
 *                                   Default current comment.
 */
function comment_author_link($comment_ID = 0)
{
    echo get_comment_author_link($comment_ID);
}

WordPress Version: 4.4

/**
 * Display the html link to the url of the author of the current comment.
 *
 * @since 0.71
 * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object.
 *
 * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's link.
 *									 Default current comment.
 */
function comment_author_link($comment_ID = 0)
{
    echo get_comment_author_link($comment_ID);
}

WordPress Version: 4.3

/**
 * Display the html link to the url of the author of the current comment.
 *
 * @since 0.71
 *
 * @param int $comment_ID ID of the comment for which to print the author's
 *                        link. Default current comment.
 */
function comment_author_link($comment_ID = 0)
{
    echo get_comment_author_link($comment_ID);
}

WordPress Version: 3.9

/**
 * Display the html link to the url of the author of the current comment.
 *
 * @since 0.71
 *
 * @see get_comment_author_link() Echoes result
 *
 * @param int $comment_ID ID of the comment for which to print the author's
 *                        link. Default current comment.
 */
function comment_author_link($comment_ID = 0)
{
    echo get_comment_author_link($comment_ID);
}

WordPress Version: 3.7

/**
 * Display the html link to the url of the author of the current comment.
 *
 * @since 0.71
 * @see get_comment_author_link() Echoes result
 *
 * @param int $comment_ID Optional. The ID of the comment for which to print the author's link. Default current comment.
 */
function comment_author_link($comment_ID = 0)
{
    echo get_comment_author_link($comment_ID);
}