Making WordPress.org


Ignore:
Timestamp:
09/27/2016 08:35:17 PM (9 years ago)
Author:
coffee2code
Message:

Forums Theme: Display custom title, if defined, in user forum replies.

After [4144], the display of a user's forum role is no longer overridden by a custom title, so the display of the custom title must be reintroduced.

See #1972.

File:
1 edited

Legend:

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

    r4146 r4147  
    3030
    3131        <?php bbp_user_nicename( bbp_get_reply_author_id(), array( 'before' => '<p class="bbp-user-nicename">@', 'after' => '</p>' ) ); ?>
     32
     33        <?php if ( $title = get_user_option( 'title', bbp_get_reply_author_id() ) ) : ?>
     34
     35            <p class="bbp-author-title"><?php echo esc_html( $title ); ?></p>
     36
     37        <?php endif; ?>
    3238
    3339        <p class="bbp-reply-post-date"><a href="<?php bbp_reply_url(); ?>" title="#<?php bbp_reply_id(); ?>" class="bbp-reply-permalink"><?php bbp_reply_post_date( bbp_get_reply_id(), true ); ?></a></p>
Note: See TracChangeset for help on using the changeset viewer.