Skip to:
Content

BuddyPress.org

Changeset 5533


Ignore:
Timestamp:
12/13/2011 12:39:04 AM (12 years ago)
Author:
boonebgorges
Message:

Use the proper function for getting userid in bp_message_get_recipient_tabs(), depending on configuration. Fixes #3800. Props r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-template.php

    r5501 r5533  
    608608
    609609    foreach ( $recipients as $recipient ) {
    610         if ( $user_id = bp_core_get_userid( $recipient ) ) : ?>
     610        $user_id = bp_is_username_compatibility_mode() ? bp_core_get_userid( $recipient ) : bp_core_get_userid_from_nicename( $recipient );
     611
     612        if ( $user_id ) : ?>
    611613
    612614            <li id="un-<?php echo esc_attr( $recipient ); ?>" class="friend-tab">
Note: See TracChangeset for help on using the changeset viewer.