WordPress.org

Making WordPress.org


Ignore:
Timestamp:
09/23/2016 10:15:22 PM (3 years ago)
Author:
coffee2code
Message:

Forums Theme: Permit moderators to see email address on forum user profiles.

Fixes #1967.

File:
1 edited

Legend:

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

    r4055 r4123  
    2020        <?php endif; ?>
    2121
     22        <?php if ( current_user_can( 'moderate' ) ) : ?>
     23        <p class="bbp-user-email"><?php        printf( esc_html__( 'Email: %s',           'wporg-forums' ), bbp_get_displayed_user_field( 'user_email' ) ); ?></p>
     24        <?php endif; ?>
    2225        <p class="bbp-user-forum-role"><?php   printf( esc_html__( 'Forum Role: %s',      'wporg-forums' ), bbp_get_user_display_role()    ); ?></p>
    2326        <p class="bbp-user-member-since"><?php printf( esc_html__( 'Member Since: %s',    'wporg-forums' ), wporg_support_get_user_registered_date() ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.