comments_link

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

WordPress Version: 5.4

/**
 * Displays the link to the current post comments.
 *
 * @since 0.71
 *
 * @param string $deprecated   Not Used.
 * @param string $deprecated_2 Not Used.
 */
function comments_link($deprecated = '', $deprecated_2 = '')
{
    if (!empty($deprecated)) {
        _deprecated_argument(__FUNCTION__, '0.72');
    }
    if (!empty($deprecated_2)) {
        _deprecated_argument(__FUNCTION__, '1.3.0');
    }
    echo esc_url(get_comments_link());
}

WordPress Version: 4.6

/**
 * Display the link to the current post comments.
 *
 * @since 0.71
 *
 * @param string $deprecated   Not Used.
 * @param string $deprecated_2 Not Used.
 */
function comments_link($deprecated = '', $deprecated_2 = '')
{
    if (!empty($deprecated)) {
        _deprecated_argument(__FUNCTION__, '0.72');
    }
    if (!empty($deprecated_2)) {
        _deprecated_argument(__FUNCTION__, '1.3.0');
    }
    echo esc_url(get_comments_link());
}

WordPress Version: 4.1

/**
 * Display the link to the current post comments.
 *
 * @since 0.71
 *
 * @param string $deprecated   Not Used.
 * @param string $deprecated_2 Not Used.
 */
function comments_link($deprecated = '', $deprecated_2 = '')
{
    if (!empty($deprecated)) {
        _deprecated_argument(__FUNCTION__, '0.72');
    }
    if (!empty($deprecated_2)) {
        _deprecated_argument(__FUNCTION__, '1.3');
    }
    echo esc_url(get_comments_link());
}

WordPress Version: 3.7

/**
 * Display the link to the current post comments.
 *
 * @since 0.71
 *
 * @param string $deprecated   Not Used.
 * @param bool   $deprecated_2 Not Used.
 */
function comments_link($deprecated = '', $deprecated_2 = '')
{
    if (!empty($deprecated)) {
        _deprecated_argument(__FUNCTION__, '0.72');
    }
    if (!empty($deprecated_2)) {
        _deprecated_argument(__FUNCTION__, '1.3');
    }
    echo esc_url(get_comments_link());
}