Skip to:
Content

BuddyPress.org

Ticket #5466: 5466.patch

File 5466.patch, 938 bytes (added by SergeyBiryukov, 11 years ago)
  • bp-core/bp-core-filters.php

     
    249249 */
    250250function bp_core_filter_user_welcome_email( $welcome_email ) {
    251251
     252        // Don't touch the email when a user is registered by the site admin
     253        if ( is_admin() )
     254                return $welcome_email;
     255
    252256        // Don't touch the email if we don't have a custom registration template
    253257        if ( ! bp_has_custom_signup_page() )
    254258                return $welcome_email;
     
    275279 */
    276280function bp_core_filter_blog_welcome_email( $welcome_email, $blog_id, $user_id, $password ) {
    277281
     282        // Don't touch the email when a user is registered by the site admin.
     283        if ( is_admin() )
     284                return $welcome_email;
     285
    278286        // Don't touch the email if we don't have a custom registration template
    279287        if ( ! bp_has_custom_signup_page() )
    280288                return $welcome_email;