WordPress.org

Making WordPress.org


Ignore:
Timestamp:
06/28/2019 11:53:09 AM (9 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-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.