Making WordPress.org

Changeset 11374


Ignore:
Timestamp:
12/15/2021 06:53:38 AM (3 years ago)
Author:
dd32
Message:

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

See #5810.

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

Legend:

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

    r11373 r11374  
    342342            <p class="reviewer">
    343343                <?php
    344                 $review_author_markup_profile = esc_url( 'https://profiles.wordpress.org/' . $reviewer->user_nicename );
     344                $review_author_markup_profile = esc_url( 'https://profiles.wordpress.org/' . $reviewer->user_nicename . '/' );
    345345                $review_author_markup         = '<a href="' . $review_author_markup_profile . '">';
    346346                $review_author_markup        .= get_avatar( $reviewer->ID, 16, 'monsterid' ) . '</a>';
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications.php

    r10436 r11374  
    317317                        $class = ''; // in_array( $follower, $stars, true ) ? ' class="star"' : '';
    318318                    ?>
    319                         <a<?php echo $class; ?> title="<?php echo $follower; ?>" href="https://profiles.wordpress.org/<?php echo $follower; ?>">
     319                        <a<?php echo $class; ?> title="<?php echo $follower; ?>" href="https://profiles.wordpress.org/<?php echo $follower; ?>/">
    320320                            <?php echo get_avatar( get_user_by( 'login', $follower )->user_email, 36, 'retro' ); ?>
    321321                            <span class="username"><?php echo $follower; ?></span>
    322322                        </a>
    323323                    <?php endforeach; ?>
    324                     <a title="you" class="star-you" href="https://profiles.wordpress.org/<?php echo esc_attr( $username ); ?>">
     324                    <a title="you" class="star-you" href="https://profiles.wordpress.org/<?php echo esc_attr( $username ); ?>/">
    325325                        <?php echo get_avatar( wp_get_current_user()->user_email, 36, 'retro' ); ?>
    326326                        <span class="username"><?php echo $username; ?></span>
Note: See TracChangeset for help on using the changeset viewer.