Skip to:
Content

BuddyPress.org

Changeset 5532


Ignore:
Timestamp:
12/13/2011 12:38:08 AM (13 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
  • branches/1.5/bp-messages/bp-messages-template.php

    r5072 r5532  
    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.