Skip to:
Content

BuddyPress.org

Changeset 2997


Ignore:
Timestamp:
05/13/2010 07:41:35 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2278

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core/bp-core-filters.php

    r2832 r2997  
    120120 * Replace the generated password in the welcome email.
    121121 * This will not filter when the site admin registers a user.
     122 *
     123 * @uses locate_template To see if custom registration files exist
     124 * @param string $welcome_email Complete email passed through WordPress
     125 * @return string Filtered $welcome_email with 'PASSWORD' replaced by [User Set]
    122126 */
    123127function bp_core_filter_user_welcome_email( $welcome_email ) {
     
    126130        return $welcome_email;
    127131
     132    // [User Set] Replaces 'PASSWORD' in welcome email; Represents value set by user
    128133    return str_replace( 'PASSWORD', __( '[User Set]', 'buddypress' ), $welcome_email );
    129134}
     
    136141 * Replace the generated password in the welcome email.
    137142 * This will not filter when the site admin registers a user.
     143 *
     144 * @uses locate_template To see if custom registration files exist
     145 * @param string $welcome_email Complete email passed through WordPress
     146 * @param integer $blog_id ID of the blog user is joining
     147 * @param integer $user_id ID of the user joining
     148 * @param string $password Password of user
     149 * @return string Filtered $welcome_email with $password replaced by [User Set]
    138150 */
    139151function bp_core_filter_blog_welcome_email( $welcome_email, $blog_id, $user_id, $password ) {
     
    142154        return $welcome_email;
    143155
     156    // [User Set] Replaces $password in welcome email; Represents value set by user
    144157    return str_replace( $password, __( '[User Set]', 'buddypress' ), $welcome_email );
    145158}
Note: See TracChangeset for help on using the changeset viewer.