Skip to:
Content

BuddyPress.org

Ticket #5789: 5789.patch

File 5789.patch, 612 bytes (added by imath, 11 years ago)
  • src/bp-core/bp-core-filters.php

    diff --git src/bp-core/bp-core-filters.php src/bp-core/bp-core-filters.php
    index d02e324..f01189d 100644
    add_filter( 'bp_login_redirect', 'bp_core_login_redirect', 10, 3 ); 
    250250function bp_core_filter_user_welcome_email( $welcome_email ) {
    251251
    252252        // Don't touch the email when a user is registered by the site admin
    253         if ( is_admin() )
     253        if ( is_admin() || is_network_admin() ) {
    254254                return $welcome_email;
     255        }
    255256
    256257        // Don't touch the email if we don't have a custom registration template
    257258        if ( ! bp_has_custom_signup_page() )