get_author_link

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

WordPress Version: 6.1

/**
 * Returns or Prints link to the author's posts.
 *
 * @since 1.2.0
 * @deprecated 2.1.0 Use get_author_posts_url()
 * @see get_author_posts_url()
 *
 * @param bool $display
 * @param int $author_id
 * @param string $author_nicename Optional.
 * @return string|null
 */
function get_author_link($display, $author_id, $author_nicename = '')
{
    _deprecated_function(__FUNCTION__, '2.1.0', 'get_author_posts_url()');
    $link = get_author_posts_url($author_id, $author_nicename);
    if ($display) {
        echo $link;
    }
    return $link;
}

WordPress Version: 4.6

/**
 * Returns or Prints link to the author's posts.
 *
 * @since 1.2.0
 * @deprecated 2.1.0 Use get_author_posts_url()
 * @see get_author_posts_url()
 *
 * @param bool $echo
 * @param int $author_id
 * @param string $author_nicename Optional.
 * @return string|null
 */
function get_author_link($echo, $author_id, $author_nicename = '')
{
    _deprecated_function(__FUNCTION__, '2.1.0', 'get_author_posts_url()');
    $link = get_author_posts_url($author_id, $author_nicename);
    if ($echo) {
        echo $link;
    }
    return $link;
}

WordPress Version: 4.4

/**
 * Returns or Prints link to the author's posts.
 *
 * @since 1.2.0
 * @deprecated 2.1.0 Use get_author_posts_url()
 * @see get_author_posts_url()
 *
 * @param bool $echo
 * @param int $author_id
 * @param string $author_nicename Optional.
 * @return string|null
 */
function get_author_link($echo, $author_id, $author_nicename = '')
{
    _deprecated_function(__FUNCTION__, '2.1', 'get_author_posts_url()');
    $link = get_author_posts_url($author_id, $author_nicename);
    if ($echo) {
        echo $link;
    }
    return $link;
}

WordPress Version: 3.9

/**
 * Returns or Prints link to the author's posts.
 *
 * @since 1.2.0
 * @deprecated 2.1.0
 * @deprecated Use get_author_posts_url()
 * @see get_author_posts_url()
 *
 * @param bool $echo
 * @param int $author_id
 * @param string $author_nicename Optional.
 * @return string|null
 */
function get_author_link($echo, $author_id, $author_nicename = '')
{
    _deprecated_function(__FUNCTION__, '2.1', 'get_author_posts_url()');
    $link = get_author_posts_url($author_id, $author_nicename);
    if ($echo) {
        echo $link;
    }
    return $link;
}

WordPress Version: 3.7

/**
 * Returns or Prints link to the author's posts.
 *
 * @since 1.2
 * @deprecated 2.1
 * @deprecated Use get_author_posts_url()
 * @see get_author_posts_url()
 *
 * @param bool $echo
 * @param int $author_id
 * @param string $author_nicename Optional.
 * @return string|null
 */
function get_author_link($echo, $author_id, $author_nicename = '')
{
    _deprecated_function(__FUNCTION__, '2.1', 'get_author_posts_url()');
    $link = get_author_posts_url($author_id, $author_nicename);
    if ($echo) {
        echo $link;
    }
    return $link;
}