Skip to:
Content

BuddyPress.org

Ticket #4731: 4731-2.diff

File 4731-2.diff, 1.7 KB (added by tanner m, 10 years ago)

Updated the diff to include both MU and single site user registration. Also moved username within the translation function.

  • src/bp-core/bp-core-filters.php

     
    356356        $activate_url = esc_url( $activate_url );
    357357
    358358        // Email contents
    359         $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%1\$s\n\n", 'buddypress' ), $activate_url );
     359        $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%1\$s\n\nYour username is: %2\$s", 'buddypress' ), $activate_url, $user );
    360360        $subject = bp_get_email_subject( array( 'text' => __( 'Activate Your Account', 'buddypress' ) ) );
    361361
    362362        // Email filters
  • src/bp-members/bp-members-functions.php

     
    19461946        $activate_url = bp_get_activation_page() ."?key=$key";
    19471947        $activate_url = esc_url( $activate_url );
    19481948
    1949         $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%1\$s\n\n", 'buddypress' ), $activate_url );
     1949        $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%1\$s\n\nYour username is: %2\$s", 'buddypress' ), $activate_url, get_userdata( $user_id )->user_login );
    19501950        $subject = bp_get_email_subject( array( 'text' => __( 'Activate Your Account', 'buddypress' ) ) );
    19511951
    19521952        // Send the message