Ticket #5186: 5186.01.patch
File 5186.01.patch, 1.9 KB (added by , 11 years ago) |
---|
-
bp-core/bp-core-filters.php
function bp_core_activation_signup_blog_notification( $domain, $path, $title, $u 267 267 $activate_url = bp_get_activation_page() ."?key=$key"; 268 268 $activate_url = esc_url( $activate_url ); 269 269 270 $admin_email = get_site_option( 'admin_email' ); 271 272 if ( empty( $admin_email ) ) 273 $admin_email = 'support@' . $_SERVER['SERVER_NAME']; 274 275 $from_name = bp_get_option( 'blogname', 'WordPress' ); 276 $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option( 'blog_charset' ) . "\"\n"; 270 // Email contents 277 271 $message = sprintf( __( "Thanks for registering! To complete the activation of your account and blog, please click the following link:\n\n%1\$s\n\n\n\nAfter you activate, you can visit your blog here:\n\n%2\$s", 'buddypress' ), $activate_url, esc_url( "http://{$domain}{$path}" ) ); 278 272 $subject = bp_get_email_subject( array( 'text' => sprintf( __( 'Activate %s', 'buddypress' ), 'http://' . $domain . $path ) ) ); 279 273 280 // Send the message274 // Email filters 281 275 $to = apply_filters( 'bp_core_activation_signup_blog_notification_to', $user_email, $domain, $path, $title, $user, $user_email, $key, $meta ); 282 276 $subject = apply_filters( 'bp_core_activation_signup_blog_notification_subject', $subject, $domain, $path, $title, $user, $user_email, $key, $meta ); 283 277 $message = apply_filters( 'bp_core_activation_signup_blog_notification_message', $message, $domain, $path, $title, $user, $user_email, $key, $meta ); 284 278 285 wp_mail( $to, $subject, $message, $message_headers ); 279 // Send the email 280 wp_mail( $to, $subject, $message ); 286 281 287 282 do_action( 'bp_core_sent_blog_signup_email', $admin_email, $subject, $message, $domain, $path, $title, $user, $user_email, $key, $meta ); 288 283