WordPress.org

Making WordPress.org


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

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

Props jonoaldersonwp.
Fixes #4561.

File:
1 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>
Note: See TracChangeset for help on using the changeset viewer.