WordPress.org

Making WordPress.org

Changeset 9002


Ignore:
Timestamp:
06/28/2019 11:53:09 AM (3 months ago)
Author:
SergeyBiryukov
Message:

Plugin Directory: Add trailing slash to profile URLs in committers, contributors, and support reps lists.

Props jonoaldersonwp.
Fixes #4561.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets
Files:
3 edited

Legend:

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

    r6287 r9002  
    5656                <li data-user="<?php echo esc_attr( $committer->user_nicename ); ?>">
    5757                    <?php echo get_avatar( $committer->ID, 32 ); ?>
    58                     <a href="<?php echo esc_url( 'https://profiles.wordpress.org/' . $committer->user_nicename ); ?>">
     58                    <a href="<?php echo esc_url( "https://profiles.wordpress.org/{$committer->user_nicename}/" ); ?>">
    5959                        <?php echo Template::encode( $committer->display_name ); ?>
    6060                    </a><br>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-contributors.php

    r6287 r9002  
    6262            <li>
    6363                <?php echo get_avatar( $contributor->ID, 32 ); ?>
    64                 <a href="<?php echo esc_url( 'https://profiles.wordpress.org/' . $contributor->user_nicename ); ?>">
     64                <a href="<?php echo esc_url( "https://profiles.wordpress.org/{$contributor->user_nicename}/" ); ?>">
    6565                    <?php echo Template::encode( $contributor->display_name ); ?>
    6666                </a>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-support-reps.php

    r6804 r9002  
    5959                <li data-user="<?php echo esc_attr( $support_rep->user_nicename ); ?>">
    6060                    <?php echo get_avatar( $support_rep->ID, 32 ); ?>
    61                     <a href="<?php echo esc_url( 'https://profiles.wordpress.org/' . $support_rep->user_nicename ); ?>">
     61                    <a href="<?php echo esc_url( "https://profiles.wordpress.org/{$support_rep->user_nicename}/" ); ?>">
    6262                        <?php echo Template::encode( $support_rep->display_name ); ?>
    6363                    </a><br>
Note: See TracChangeset for help on using the changeset viewer.