comment_reply_link

The timeline below displays how wordpress function comment_reply_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 content for reply to comment link.
 *
 * @since 2.7.0
 *
 * @see get_comment_reply_link()
 *
 * @param array          $args    Optional. Override default options. Default empty array.
 * @param int|WP_Comment $comment Optional. Comment being replied to. Default current comment.
 * @param int|WP_Post    $post    Optional. Post ID or WP_Post object the comment is going to be displayed on.
 *                                Default current post.
 */
function comment_reply_link($args = array(), $comment = null, $post = null)
{
    echo get_comment_reply_link($args, $comment, $post);
}

WordPress Version: 5.4

/**
 * Displays the HTML content for reply to comment link.
 *
 * @since 2.7.0
 *
 * @see get_comment_reply_link()
 *
 * @param array          $args    Optional. Override default options. Default empty array.
 * @param int|WP_Comment $comment Comment being replied to. Default current comment.
 * @param int|WP_Post    $post    Post ID or WP_Post object the comment is going to be displayed on.
 *                                Default current post.
 */
function comment_reply_link($args = array(), $comment = null, $post = null)
{
    echo get_comment_reply_link($args, $comment, $post);
}

WordPress Version: 5.3

/**
 * Displays the HTML content for reply to comment link.
 *
 * @since 2.7.0
 *
 * @see get_comment_reply_link()
 *
 * @param array       $args    Optional. Override default options.
 * @param int         $comment Comment being replied to. Default current comment.
 * @param int|WP_Post $post    Post ID or WP_Post object the comment is going to be displayed on.
 *                             Default current post.
 */
function comment_reply_link($args = array(), $comment = null, $post = null)
{
    echo get_comment_reply_link($args, $comment, $post);
}

WordPress Version: 3.9

/**
 * Displays the HTML content for reply to comment link.
 *
 * @since 2.7.0
 *
 * @see get_comment_reply_link()
 *
 * @param array       $args    Optional. Override default options.
 * @param int         $comment Comment being replied to. Default current comment.
 * @param int|WP_Post $post    Post ID or WP_Post object the comment is going to be displayed on.
 *                             Default current post.
 * @return mixed Link to show comment form, if successful. False, if comments are closed.
 */
function comment_reply_link($args = array(), $comment = null, $post = null)
{
    echo get_comment_reply_link($args, $comment, $post);
}

WordPress Version: 3.7

/**
 * Displays the HTML content for reply to comment link.
 *
 * @since 2.7.0
 *
 * @param array       $args    Optional. Override default options, @see get_comment_reply_link()
 * @param int         $comment Optional. Comment being replied to. Default current comment.
 * @param int|WP_Post $post    Optional. Post ID or WP_Post object the comment is going to be displayed on. Default current post.
 * @return mixed Link to show comment form, if successful. False, if comments are closed.
 */
function comment_reply_link($args = array(), $comment = null, $post = null)
{
    echo get_comment_reply_link($args, $comment, $post);
}