Skip to:
Content

BuddyPress.org

Changeset 4325


Ignore:
Timestamp:
05/02/2011 09:23:48 PM (14 years ago)
Author:
boonebgorges
Message:

Fixes PHP notices during registration process on MS

Location:
trunk
Files:
2 edited

Legend:

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

    r4107 r4325  
    230230
    231231    /* If this is an admin generated activation, add a param to email the user login details */
    232     if ( is_admin() )
    233         $email = '&e=1';
     232    $email = is_admin() ? '&e=1' : '';
    234233
    235234    $from_name = ( '' == get_site_option( "site_name" ) ) ? 'WordPress' : esc_html( get_site_option( "site_name" ) );
    236235    $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
    237     $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%s\n\n", 'buddypress' ), $activate_url . $email, esc_url( "http://{$domain}{$path}" ) );
     236    $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%s\n\n", 'buddypress' ), $activate_url . $email );
    238237    $subject = '[' . $from_name . '] ' . __( 'Activate Your Account', 'buddypress' );
    239238
  • trunk/bp-members/bp-members-signup.php

    r4259 r4325  
    370370    if ( is_multisite() ) {
    371371        wpmu_signup_user( $user_login, $user_email, $usermeta );
     372       
     373        // On multisite, the user id is not created until the user activates the account
     374        // but we need to cast $user_id to pass to the filters
     375        $user_id = false;
    372376
    373377    } else {
Note: See TracChangeset for help on using the changeset viewer.