Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/22/2013 08:08:46 PM (6 years ago)
Author:
boonebgorges
Message:

Don't show @username in member headers if mentions are disabled

It's unnecessary and misleading to show this information when mentions have
been turned off.

Fixes #5067

Props imath for inital patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-templates/bp-legacy/buddypress/members/single/member-header.php

    r6795 r7232  
    2222<div id="item-header-content">
    2323
    24     <h2 class="user-nicename">@<?php bp_displayed_user_username(); ?></h2>
     24    <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
     25        <h2 class="user-nicename">@<?php bp_displayed_user_username(); ?></h2>
     26    <?php endif; ?>
     27
    2528    <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
    2629
Note: See TracChangeset for help on using the changeset viewer.