Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/22/2010 11:34:23 AM (15 years ago)
Author:
apeatling
Message:

Added new install/upgrade wizard. Removed root components and replaced them with actual WordPress pages. Testing on WordPress vhost/novhost and root profile support still to do.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-signup.php

    r2842 r2863  
    246246
    247247function bp_core_validate_user_signup( $user_name, $user_email ) {
    248     global $wpdb;
     248    global $wpdb, $bp;
    249249
    250250    $errors = new WP_Error();
     
    258258
    259259    $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 ) );
    261261
    262262    $illegal_names = array_merge( (array)$db_illegal_names, (array)$filtered_illegal_names );
     
    362362        $activation_key = wp_hash( $user_id );
    363363        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 );
    365365    }
    366366
     
    508508}
    509509
    510 function bp_core_signup_send_validation_email( $user_id, $key ) {
     510function bp_core_signup_send_validation_email( $user_id, $user_email, $key ) {
    511511    $activate_url = bp_get_activation_page() ."?key=$key";
    512512    $activate_url = clean_url( $activate_url );
Note: See TracChangeset for help on using the changeset viewer.