Making WordPress.org

Changeset 5007


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.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support
Files:
2 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' );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php

    r5006 r5007  
    277277            if ( $is_user_flagged ) {
    278278                if ( $moderator ) {
    279                     /* translators: %s: moderator's username */
    280                     $notices[] = sprintf( __( 'This user has been flagged by %s.', 'wporg-forums' ), $moderator );
     279                    $notices[] = sprintf(
     280                        /* translators: %s: linked moderator's username */
     281                        __( 'This user has been flagged by %s.', 'wporg-forums' ),
     282                        sprintf( '<a href="%s">%s</a>', esc_url( 'https://profiles.wordpress.org/' . $moderator ), $moderator )
     283                    );
    281284                } else {
    282285                    $notices[] = __( 'This user has been flagged.', 'wporg-forums' );
Note: See TracChangeset for help on using the changeset viewer.