WordPress.org

Making WordPress.org

Changeset 8928


Ignore:
Timestamp:
06/06/2019 03:50:33 PM (3 years ago)
Author:
coffee2code
Message:

Support Theme: Add trailling slash to links to user profiles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php

    r8438 r8928  
    231231    $user = get_userdata( $user_id );
    232232
    233     return esc_url( 'https://profiles.wordpress.org/' . $user->user_nicename );
     233    return esc_url( 'https://profiles.wordpress.org/' . $user->user_nicename . '/' );
    234234}
    235235// Temporarily remove the redirect to `https://profiles.wordpress.org/`, see #meta1868.
     
    246246
    247247    return sprintf( '<a href="%s">@%s</a>',
    248         esc_url( 'https://profiles.wordpress.org/' . $user_nicename ),
     248        esc_url( 'https://profiles.wordpress.org/' . $user_nicename . '/' ),
    249249        $user_nicename
    250250    );
Note: See TracChangeset for help on using the changeset viewer.