Changeset 2863 for trunk/bp-core/bp-core-signup.php
- Timestamp:
- 03/22/2010 11:34:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-signup.php
r2842 r2863 246 246 247 247 function bp_core_validate_user_signup( $user_name, $user_email ) { 248 global $wpdb ;248 global $wpdb, $bp; 249 249 250 250 $errors = new WP_Error(); … … 258 258 259 259 $db_illegal_names = get_site_option( 'illegal_names' ); 260 $filtered_illegal_names = apply_filters( 'bp_core_illegal_usernames', array( 'www', 'web', 'root', 'admin', 'main', 'invite', 'administrator', BP_GROUPS_SLUG, BP_MEMBERS_SLUG, BP_FORUMS_SLUG, BP_BLOGS_SLUG, BP_REGISTER_SLUG, BP_ACTIVATION_SLUG ) );260 $filtered_illegal_names = apply_filters( 'bp_core_illegal_usernames', array( 'www', 'web', 'root', 'admin', 'main', 'invite', 'administrator', BP_GROUPS_SLUG, $bp->members->slug, BP_FORUMS_SLUG, BP_BLOGS_SLUG, BP_REGISTER_SLUG, BP_ACTIVATION_SLUG ) ); 261 261 262 262 $illegal_names = array_merge( (array)$db_illegal_names, (array)$filtered_illegal_names ); … … 362 362 $activation_key = wp_hash( $user_id ); 363 363 update_usermeta( $user_id, 'activation_key', $activation_key ); 364 bp_core_signup_send_validation_email( $user_id, $ activation_key );364 bp_core_signup_send_validation_email( $user_id, $user_email, $activation_key ); 365 365 } 366 366 … … 508 508 } 509 509 510 function bp_core_signup_send_validation_email( $user_id, $ key ) {510 function bp_core_signup_send_validation_email( $user_id, $user_email, $key ) { 511 511 $activate_url = bp_get_activation_page() ."?key=$key"; 512 512 $activate_url = clean_url( $activate_url );
Note: See TracChangeset
for help on using the changeset viewer.