Making WordPress.org

Changeset 9469


Ignore:
Timestamp:
02/05/2020 05:37:48 AM (4 years ago)
Author:
dd32
Message:

Support Forums: Add the ugc class to user supplied URLs.

Props diddledan.
See #4958.

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

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php

    r9464 r9469  
    729729                // Display site URL for logged-in users only.
    730730                if ( is_user_logged_in() ) {
    731                     printf( '<p class="wporg-bbp-topic-site-url">%1$s <a href="%2$s" rel="nofollow">%2$s</a></p>',
     731                    printf( '<p class="wporg-bbp-topic-site-url">%1$s <a href="%2$s" rel="nofollow ugc">%2$s</a></p>',
    732732                        __( 'The page I need help with:', 'wporg-forums' ),
    733733                        esc_url( $site_url )
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/user-profile.php

    r8464 r9469  
    107107            <p class="bbp-user-website"><?php
    108108            /* translators: %s: link to user's website */
    109             printf( esc_html__( 'Website: %s', 'wporg-forums' ), sprintf( '<a href="%s" rel="nofollow">%s</a>', esc_url( $website ), esc_html( $website ) ) );
     109            printf( esc_html__( 'Website: %s', 'wporg-forums' ), sprintf( '<a href="%s" rel="nofollow ugc">%s</a>', esc_url( $website ), esc_html( $website ) ) );
    110110            ?></p>
    111111   
Note: See TracChangeset for help on using the changeset viewer.