Making WordPress.org

Changeset 4145


Ignore:
Timestamp:
09/27/2016 07:22:56 PM (8 years ago)
Author:
coffee2code
Message:

Forums Theme: Show custom title separately from forum role in user forum profile.

Props netweb.
Fixes #1972.

File:
1 edited

Legend:

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

    r4123 r4145  
    2323        <p class="bbp-user-email"><?php        printf( esc_html__( 'Email: %s',           'wporg-forums' ), bbp_get_displayed_user_field( 'user_email' ) ); ?></p>
    2424        <?php endif; ?>
     25
     26        <?php if ( $custom_title = get_user_option( 'title', bbp_get_displayed_user_id() ) ) : ?>
     27   
     28            <p class="bbp-user-custom-title"><?php printf( esc_html__( 'Title: %s',       'wporg-forums' ), esc_html( $custom_title )      ); ?></p>
     29   
     30        <?php endif; ?>
     31
    2532        <p class="bbp-user-forum-role"><?php   printf( esc_html__( 'Forum Role: %s',      'wporg-forums' ), bbp_get_user_display_role()    ); ?></p>
    2633        <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.