Skip to:
Content

BuddyPress.org

Changeset 4252


Ignore:
Timestamp:
04/23/2011 12:26:17 PM (14 years ago)
Author:
djpaul
Message:

Fix automatic recipient entry when pressing 'send private message' button on user profile. Fixes #3072

File:
1 edited

Legend:

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

    r4243 r4252  
    576576
    577577function bp_message_get_recipient_tabs() {
    578     if ( $recipients = bp_get_message_get_recipient_usernames() ) :
     578    $recipients = explode( ' ', bp_get_message_get_recipient_usernames() );
     579
     580    foreach ( $recipients as $recipient ) {
    579581        if ( $user_id = bp_core_get_userid( $recipient ) ) : ?>
    580582
     
    587589
    588590        <?php endif;
    589     endif;
     591    }
    590592}
    591593
Note: See TracChangeset for help on using the changeset viewer.