Changeset 10597
- Timestamp:
- 02/16/2016 02:17:57 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-filters.php
r10567 r10597 465 465 ), 466 466 ); 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 ); 468 468 469 469 // Return false to stop the original WPMU function from continuing. … … 520 520 ), 521 521 ); 522 bp_send_email( 'core-user-registration', $user_email, $args );522 bp_send_email( 'core-user-registration', array( array( $user_email => $user ) ), $args ); 523 523 524 524 // Return false to stop the original WPMU function from continuing. -
trunk/src/bp-members/bp-members-functions.php
r10511 r10597 1840 1840 */ 1841 1841 if ( apply_filters( 'bp_core_signup_send_activation_key', true, $user_id, $user_email, $activation_key, $usermeta ) ) { 1842 bp_core_signup_send_validation_email( $user_id, $user_email, $activation_key );1842 bp_core_signup_send_validation_email( $user_id, $user_email, $activation_key, $user_login ); 1843 1843 } 1844 1844 } … … 2200 2200 * Send activation email to a newly registered user. 2201 2201 * 2202 * @param int $user_id ID of the new user. 2203 * @param string $user_email Email address of the new user. 2204 * @param string $key Activation key. 2205 */ 2206 function bp_core_signup_send_validation_email( $user_id, $user_email, $key ) { 2202 * @since 2.5.0 Add the $user_login parameter. 2203 * 2204 * @param int|bool $user_id ID of the new user, false if BP_SIGNUPS_SKIP_USER_CREATION is true. 2205 * @param string $user_email Email address of the new user. 2206 * @param string $key Activation key. 2207 * @param string $user_login Optional. The user login name. 2208 */ 2209 function bp_core_signup_send_validation_email( $user_id, $user_email, $key, $user_login = '' ) { 2207 2210 $args = array( 2208 2211 'tokens' => array( … … 2214 2217 ), 2215 2218 ); 2216 bp_send_email( 'core-user-registration', $user_id, $args ); 2219 2220 if ( $user_id ) { 2221 $to = $user_id; 2222 } else { 2223 $to = array( array( $user_email => $user_login ) ); 2224 } 2225 2226 bp_send_email( 'core-user-registration', $to, $args ); 2217 2227 } 2218 2228 -
trunk/src/bp-members/classes/class-bp-signup.php
r10417 r10597 587 587 // Send the validation email. 588 588 } else { 589 bp_core_signup_send_validation_email( false, $signup->user_email, $signup->activation_key );589 bp_core_signup_send_validation_email( false, $signup->user_email, $signup->activation_key, $signup->user_login ); 590 590 } 591 591 }
Note: See TracChangeset
for help on using the changeset viewer.