Making WordPress.org

Changeset 11373


Ignore:
Timestamp:
12/15/2021 06:46:45 AM (2 years ago)
Author:
dd32
Message:

Consistently link to https://profiles.wordpress.org/$user/ with a trailing slash.

See #5810.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-committers.php

    r9683 r11373  
    198198                    $row .= sprintf(
    199199                        '<strong><a href="%s">%s</a></strong><br />&lt;%s&gt;',
    200                         esc_url( '//profiles.wordpress.org/' . $user_object->user_nicename ),
     200                        esc_url( '//profiles.wordpress.org/' . $user_object->user_nicename . '/' ),
    201201                        $user_object->user_login,
    202202                        $user_object->user_email
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-support-reps.php

    r9683 r11373  
    198198                    $row .= sprintf(
    199199                        '<strong><a href="%s">%s</a></strong><br />&lt;%s&gt;',
    200                         esc_url( '//profiles.wordpress.org/' . $user_object->user_nicename ),
     200                        esc_url( '//profiles.wordpress.org/' . $user_object->user_nicename . '/' ),
    201201                        $user_object->user_login,
    202202                        $user_object->user_email
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-author-card.php

    r10282 r11373  
    109109            <?php echo get_avatar( $author->ID, 48 ); ?>
    110110            <div class="profile-details">
    111                 <strong><a href="//profiles.wordpress.org/<?php echo $author->user_nicename; ?>"><?php echo $author->user_login; ?></a></strong>
     111                <strong><a href="//profiles.wordpress.org/<?php echo $author->user_nicename; ?>/"><?php echo $author->user_login; ?></a></strong>
    112112                <?php
    113113                $author_links = array(
     
    127127
    128128                <span class="profile-links">
    129                     <a href="//profiles.wordpress.org/<?php echo $author->user_nicename; ?>"><?php _e( 'profile', 'wporg-plugins' ); ?></a> |
    130                     <a href="//wordpress.org/support/users/<?php echo $author->user_nicename; ?>"><?php _e( 'support', 'wporg-plugins' ); ?></a>
     129                    <a href="//profiles.wordpress.org/<?php echo $author->user_nicename; ?>/"><?php _e( 'profile', 'wporg-plugins' ); ?></a> |
     130                    <a href="//wordpress.org/support/users/<?php echo $author->user_nicename; ?>/"><?php _e( 'support', 'wporg-plugins' ); ?></a>
    131131                </span>
    132132
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-committers.php

    r9653 r11373  
    169169        $data = array(
    170170            'nicename' => $user->user_nicename,
    171             'profile'  => esc_url( 'https://profiles.wordpress.org/' . $user->user_nicename ),
     171            'profile'  => esc_url( 'https://profiles.wordpress.org/' . $user->user_nicename . '/' ),
    172172            'avatar'   => get_avatar_url( $user->ID, 32 ),
    173173            'name'     => $user->display_name,
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-self-transfer.php

    r10196 r11373  
    8686        Tools::audit_log( sprintf(
    8787            'Ownership self-transferred to <a href="%s">%s</a>.',
    88             esc_url( 'https://profiles.wordpress.org/' . $new_owner->user_nicename .'/' ),
     88            esc_url( 'https://profiles.wordpress.org/' . $new_owner->user_nicename . '/' ),
    8989            $new_owner->user_login
    9090        ), $plugin );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-support-reps.php

    r9653 r11373  
    157157        $data = array(
    158158            'nicename' => $user->user_nicename,
    159             'profile'  => esc_url( 'https://profiles.wordpress.org/' . $user->user_nicename ),
     159            'profile'  => esc_url( 'https://profiles.wordpress.org/' . $user->user_nicename . '/' ),
    160160            'avatar'   => get_avatar_url( $user->ID, 32 ),
    161161            'name'     => $user->display_name,
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php

    r10816 r11373  
    296296        }
    297297
    298         return 'https://profiles.wordpress.org/' . $u->user_nicename;
     298        return 'https://profiles.wordpress.org/' . $u->user_nicename . '/';
    299299    }
    300300
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php

    r11312 r11373  
    18051805            Tools::audit_log( sprintf(
    18061806                'Submitted by <a href="%s">%s</a>.',
    1807                 esc_url( '//profiles.wordpress.org/' . $owner->user_nicename ),
     1807                esc_url( '//profiles.wordpress.org/' . $owner->user_nicename . '/' ),
    18081808                $owner->user_login
    18091809            ), $result->ID );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-release-confirmation.php

    r10292 r11373  
    145145                $data['committer'][ $i ] = sprintf(
    146146                    '<a href="%s">%s</a>',
    147                     'https://profiles.wordpress.org/' . get_user_by( 'login', $login )->user_nicename,
     147                    'https://profiles.wordpress.org/' . get_user_by( 'login', $login )->user_nicename . '/',
    148148                    esc_html( $login )
    149149                );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-contributors/admin/class-helphub-contributors-admin.php

    r7804 r11373  
    170170        if ( is_array( $contributors ) ) :
    171171            foreach ( $contributors as $contributor ) {
    172                 $contributor_link = '<a href="https://profiles.wordpress.org/' . esc_html( $contributor ) . '">@' . esc_html( $contributor ) . '</a>';
     172                $contributor_link = '<a href="https://profiles.wordpress.org/' . esc_html( $contributor ) . '/">@' . esc_html( $contributor ) . '</a>';
    173173
    174174                if ( end( $contributors ) == $contributor ) {
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-contributors/public/class-helphub-contributors-public.php

    r7354 r11373  
    103103                        $data = apply_filters( 'helphub_contributors_user_data', $data, $contributor_object );
    104104
    105                         $contributor_url      = 'https://profiles.wordpress.org/' . $data['user_nicename'];
     105                        $contributor_url      = 'https://profiles.wordpress.org/' . $data['user_nicename'] . '/';
    106106                        $contributor_gravatar = '<img src="' . esc_url( get_avatar_url( $data['user_email'], array( 'size' => 40 ) ) ) . '" />';
    107107                        $contributor_name     = '<span class="name">' . esc_html( $data['display_name'] ) . '</span>';
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-themes-api.php

    r11243 r11373  
    709709                // WordPress.org user details.
    710710                'user_nicename' => $author->user_nicename,
    711                 'profile'       => 'https://profiles.wordpress.org/' . $author->user_nicename,
     711                'profile'       => 'https://profiles.wordpress.org/' . $author->user_nicename . '/',
    712712                'avatar'        => 'https://secure.gravatar.com/avatar/' . md5( $author->user_email ) . '?s=96&d=monsterid&r=g',
    713713                'display_name'  => $author->display_name ?: $author->user_nicename,
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-components.php

    r10729 r11373  
    395395                }
    396396
    397                 printf( '<li><a href="//profiles.wordpress.org/%s">%s %s</a></li>',
     397                printf( '<li><a href="//profiles.wordpress.org/%s/">%s %s</a></li>',
    398398                    esc_attr( $maintainer->user_nicename ),
    399399                    get_avatar( $maintainer->user_email, 36 ),
     
    416416            echo '<ul class="followers">';
    417417            foreach ( $followers as $follower ) {
    418                 echo '<li><a title="' . esc_attr( $follower->user_login ) . '" href="//profiles.wordpress.org/' . esc_attr( $follower->user_nicename ) . '">';
     418                echo '<li><a title="' . esc_attr( $follower->user_login ) . '" href="//profiles.wordpress.org/' . esc_attr( $follower->user_nicename ) . '/">';
    419419                echo get_avatar( $follower->user_email, 36 ) . '</a></li>';
    420420            }
     
    718718            }
    719719
    720             echo '<a href="//profiles.wordpress.org/' . esc_attr( $maintainer->user_nicename ) . '" title="' . esc_attr( $maintainer->display_name ) . '">' . get_avatar( $maintainer->user_email, 24 ) . "</a>";
     720            echo '<a href="//profiles.wordpress.org/' . esc_attr( $maintainer->user_nicename ) . '/" title="' . esc_attr( $maintainer->display_name ) . '">' . get_avatar( $maintainer->user_email, 24 ) . "</a>";
    721721        }
    722722        echo '</td>';
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/views/locale-details.php

    r8781 r11373  
    7373            ?>
    7474            <li>
    75                 <a class="profile" href="https://profiles.wordpress.org/<?php echo esc_attr( $locale_manager['nice_name'] ); ?>"><?php
     75                <a class="profile" href="https://profiles.wordpress.org/<?php echo esc_attr( $locale_manager['nice_name'] ); ?>/"><?php
    7676                    echo get_avatar( $locale_manager['email'], 60 );
    7777                    echo esc_html( $locale_manager['display_name'] );
     
    9494            ?>
    9595            <li>
    96                 <a class="profile" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>"><?php
     96                <a class="profile" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>/"><?php
    9797                    echo get_avatar( $validator['email'], 60 );
    9898                    echo esc_html( $validator['display_name'] );
     
    115115            ?>
    116116            <li>
    117                 <a class="profile" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>"><?php
     117                <a class="profile" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>/"><?php
    118118                    echo get_avatar( $validator['email'], 40 );
    119119                    echo esc_html( $validator['display_name'] );
     
    137137        foreach ( $locale_data['translators'] as $translator ) {
    138138            $translators[] = sprintf(
    139                 '<a href="https://profiles.wordpress.org/%s">%s</a>',
     139                '<a href="https://profiles.wordpress.org/%s/">%s</a>',
    140140                esc_attr( $translator['nice_name'] ),
    141141                esc_html( $translator['display_name'] )
     
    155155        foreach ( $locale_data['translators_past'] as $translator ) {
    156156            $translators[] = sprintf(
    157                 '<a href="https://profiles.wordpress.org/%s">%s</a>',
     157                '<a href="https://profiles.wordpress.org/%s/">%s</a>',
    158158                esc_attr( $translator['nice_name'] ),
    159159                esc_html( $translator['display_name'] )
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-trac-watcher/admin/reports-page.php

    r11371 r11373  
    108108                        'id' => $r->id,
    109109                        'name' => $r->display_name ?: $r->user_nicename,
    110                         'link' => 'https://profiles.wordpress.org/' . $r->user_nicename,
     110                        'link' => 'https://profiles.wordpress.org/' . $r->user_nicename . '/',
    111111                        'count' => $r->count
    112112                    ];
Note: See TracChangeset for help on using the changeset viewer.