Making WordPress.org


Ignore:
Timestamp:
02/24/2017 08:55:13 PM (8 years ago)
Author:
coffee2code
Message:

Support Theme: In flagged user notices, link the moderator name to their profile.

See #2493.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/user-profile.php

    r5006 r5007  
    1919            if ( $is_user_flagged ) {
    2020                if ( $moderator ) {
    21                     /* translators: %s: moderator's username */
    22                     $msg = sprintf( __( 'This user has been flagged by %s.', 'wporg-forums' ), $moderator );
     21                    $msg = sprintf(
     22                        /* translators: %s: linked moderator's username */
     23                        __( 'This user has been flagged by %s.', 'wporg-forums' ),
     24                        sprintf( '<a href="%s">%s</a>', esc_url( 'https://profiles.wordpress.org/' . $moderator ), $moderator )
     25                    );
    2326                } else {
    2427                    $msg = __( 'This user has been flagged.', 'wporg-forums' );
Note: See TracChangeset for help on using the changeset viewer.