Ticket #5466: 5466.patch
File 5466.patch, 938 bytes (added by , 11 years ago) |
---|
-
bp-core/bp-core-filters.php
249 249 */ 250 250 function bp_core_filter_user_welcome_email( $welcome_email ) { 251 251 252 // Don't touch the email when a user is registered by the site admin 253 if ( is_admin() ) 254 return $welcome_email; 255 252 256 // Don't touch the email if we don't have a custom registration template 253 257 if ( ! bp_has_custom_signup_page() ) 254 258 return $welcome_email; … … 275 279 */ 276 280 function bp_core_filter_blog_welcome_email( $welcome_email, $blog_id, $user_id, $password ) { 277 281 282 // Don't touch the email when a user is registered by the site admin. 283 if ( is_admin() ) 284 return $welcome_email; 285 278 286 // Don't touch the email if we don't have a custom registration template 279 287 if ( ! bp_has_custom_signup_page() ) 280 288 return $welcome_email;