_wp_credits_add_profile_link

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

WordPress Version: 6.3

/**
 * Retrieves the link to a contributor's WordPress.org profile page.
 *
 * @access private
 * @since 3.2.0
 *
 * @param string $display_name  The contributor's display name (passed by reference).
 * @param string $username      The contributor's username.
 * @param string $profiles      URL to the contributor's WordPress.org profile page.
 */
function _wp_credits_add_profile_link(&$display_name, $username, $profiles)
{
    $display_name = '<a href="' . esc_url(sprintf($profiles, $username)) . '">' . esc_html($display_name) . '</a>';
}

WordPress Version: 4.9

/**
 * Retrieve the link to a contributor's WordPress.org profile page.
 *
 * @access private
 * @since 3.2.0
 *
 * @param string $display_name  The contributor's display name (passed by reference).
 * @param string $username      The contributor's username.
 * @param string $profiles      URL to the contributor's WordPress.org profile page.
 */
function _wp_credits_add_profile_link(&$display_name, $username, $profiles)
{
    $display_name = '<a href="' . esc_url(sprintf($profiles, $username)) . '">' . esc_html($display_name) . '</a>';
}

WordPress Version: 4.5

/**
 * Retrieve the link to a contributor's WordPress.org profile page.
 *
 * @access private
 * @since 3.2.0
 *
 * @param string $display_name  The contributor's display name, passed by reference.
 * @param string $username      The contributor's username.
 * @param string $profiles      URL to the contributor's WordPress.org profile page.
 */
function _wp_credits_add_profile_link(&$display_name, $username, $profiles)
{
    $display_name = '<a href="' . esc_url(sprintf($profiles, $username)) . '">' . esc_html($display_name) . '</a>';
}

WordPress Version: 4.3

/**
 * Retrieve the link to a contributor's WordPress.org profile page.
 *
 * @access private
 * @since 3.2.0
 *
 * @param string &$display_name The contributor's display name, passed by reference.
 * @param string $username      The contributor's username.
 * @param string $profiles      URL to the contributor's WordPress.org profile page.
 */
function _wp_credits_add_profile_link(&$display_name, $username, $profiles)
{
    $display_name = '<a href="' . esc_url(sprintf($profiles, $username)) . '">' . esc_html($display_name) . '</a>';
}

WordPress Version: 3.8

/**
 * Retrieve the link to a contributor's WordPress.org profile page.
 *
 * @access private
 * @since 3.2.0
 *
 * @param string &$display_name The contributor's display name, passed by reference.
 * @param string $username      The contributor's username.
 * @param string $profiles      URL to the contributor's WordPress.org profile page.
 * @return string A contributor's display name, hyperlinked to a WordPress.org profile page.
 */
function _wp_credits_add_profile_link(&$display_name, $username, $profiles)
{
    $display_name = '<a href="' . esc_url(sprintf($profiles, $username)) . '">' . esc_html($display_name) . '</a>';
}

WordPress Version: 3.7

/**
 * Retrieve the link to a contributor's WordPress.org profile page.
 *
 * @access private
 * @since 3.2.0
 *
 * @param string &$display_name The contributor's display name, passed by reference.
 * @param string $user_name     The contributor's username.
 * @param string $profiles      URL to the contributor's WordPress.org profile page.
 * @return string A contributor's display name, hyperlinked to a WordPress.org profile page.
 */
function _wp_credits_add_profile_link(&$display_name, $username, $profiles)
{
    $display_name = '<a href="' . esc_url(sprintf($profiles, $username)) . '">' . esc_html($display_name) . '</a>';
}