Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/16/2016 02:17:57 PM (9 years ago)
Author:
djpaul
Message:

Emails: for user/site registrations emails, set recipient name to their user_login.

For multisite and for BP_SIGNUPS_SKIP_USER_CREATION , when the user account isn't created yet, we can't fetch the user's display name. Instead, use their user_login name in the email greeting.

Fixes #6913

Props imath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-filters.php

    r10567 r10597  
    465465        ),
    466466    );
    467     bp_send_email( 'core-user-registration-with-blog', $user_email, $args );
     467    bp_send_email( 'core-user-registration-with-blog', array( array( $user_email => $user ) ), $args );
    468468
    469469    // Return false to stop the original WPMU function from continuing.
     
    520520        ),
    521521    );
    522     bp_send_email( 'core-user-registration', $user_email, $args );
     522    bp_send_email( 'core-user-registration', array( array( $user_email => $user ) ), $args );
    523523
    524524    // Return false to stop the original WPMU function from continuing.
Note: See TracChangeset for help on using the changeset viewer.