get_author_name

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

WordPress Version: 4.6

/**
 * Retrieve the specified author's preferred display name.
 *
 * @since 1.0.0
 * @deprecated 2.8.0 Use get_the_author_meta()
 * @see get_the_author_meta()
 *
 * @param int $auth_id The ID of the author.
 * @return string The author's display name.
 */
function get_author_name($auth_id = false)
{
    _deprecated_function(__FUNCTION__, '2.8.0', 'get_the_author_meta(\'display_name\')');
    return get_the_author_meta('display_name', $auth_id);
}

WordPress Version: 4.4

/**
 * Retrieve the specified author's preferred display name.
 *
 * @since 1.0.0
 * @deprecated 2.8.0 Use get_the_author_meta()
 * @see get_the_author_meta()
 *
 * @param int $auth_id The ID of the author.
 * @return string The author's display name.
 */
function get_author_name($auth_id = false)
{
    _deprecated_function(__FUNCTION__, '2.8', 'get_the_author_meta(\'display_name\')');
    return get_the_author_meta('display_name', $auth_id);
}

WordPress Version: 3.9

/**
 * Retrieve the specified author's preferred display name.
 *
 * @since 1.0.0
 * @deprecated 2.8.0
 * @deprecated Use get_the_author_meta('display_name')
 * @see get_the_author_meta()
 *
 * @param int $auth_id The ID of the author.
 * @return string The author's display name.
 */
function get_author_name($auth_id = false)
{
    _deprecated_function(__FUNCTION__, '2.8', 'get_the_author_meta(\'display_name\')');
    return get_the_author_meta('display_name', $auth_id);
}

WordPress Version: 3.7

/**
 * Retrieve the specified author's preferred display name.
 *
 * @since 1.0.0
 * @deprecated 2.8
 * @deprecated Use get_the_author_meta('display_name')
 * @see get_the_author_meta()
 *
 * @param int $auth_id The ID of the author.
 * @return string The author's display name.
 */
function get_author_name($auth_id = false)
{
    _deprecated_function(__FUNCTION__, '2.8', 'get_the_author_meta(\'display_name\')');
    return get_the_author_meta('display_name', $auth_id);
}