Changeset 6587
- Timestamp:
- 12/10/2012 09:36:05 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-notifications.php
r6342 r6587 71 71 $ud = bp_core_get_core_userdata( $receiver_user_id ); 72 72 $to = $ud->user_email; 73 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES);73 $sitename = bp_get_option( 'blogname', 'WordPress' ); 74 74 $subject = '[' . $sitename . '] ' . sprintf( __( '%s mentioned you in an update', 'buddypress' ), $poster_name ); 75 75 … … 160 160 $ud = bp_core_get_core_userdata( $original_activity->user_id ); 161 161 $to = $ud->user_email; 162 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES);162 $sitename = bp_get_option( 'blogname', 'WordPress' ); 163 163 $subject = '[' . $sitename . '] ' . sprintf( __( '%s replied to one of your updates', 'buddypress' ), $poster_name ); 164 164 … … 203 203 $ud = bp_core_get_core_userdata( $parent_comment->user_id ); 204 204 $to = $ud->user_email; 205 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES);205 $sitename = bp_get_option( 'blogname', 'WordPress' ); 206 206 $subject = '[' . $sitename . '] ' . sprintf( __( '%s replied to one of your comments', 'buddypress' ), $poster_name ); 207 207 -
trunk/bp-core/bp-core-filters.php
r6586 r6587 105 105 * 106 106 * @package BuddyPress Core 107 * @uses get_blog_option() fetches the value for a meta_key in the wp_X_options table107 * @uses bp_get_option() fetches the value for a meta_key in the wp_X_options table 108 108 * @return The blog name for the root blog 109 109 */ 110 110 function bp_core_email_from_name_filter() { 111 return apply_filters( 'bp_core_email_from_name_filter', wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES) );111 return apply_filters( 'bp_core_email_from_name_filter', bp_get_option( 'blogname', 'WordPress' ) ); 112 112 } 113 113 add_filter( 'wp_mail_from_name', 'bp_core_email_from_name_filter' ); … … 253 253 $admin_email = 'support@' . $_SERVER['SERVER_NAME']; 254 254 255 $from_name = get_site_option( 'site_name', 'WordPress' );255 $from_name = bp_get_option( 'blogname', 'WordPress' ); 256 256 $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option( 'blog_charset' ) . "\"\n"; 257 257 $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}" ) ); … … 281 281 $admin_email = 'support@' . $_SERVER['SERVER_NAME']; 282 282 283 $from_name = get_site_option( 'site_name', 'WordPress' );283 $from_name = bp_get_option( 'blogname', 'WordPress' ); 284 284 $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option( 'blog_charset' ) . "\"\n"; 285 285 $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%1\$s\n\n", 'buddypress' ), $activate_url ); -
trunk/bp-core/deprecated/1.5.php
r6583 r6587 350 350 $ud = bp_core_get_core_userdata( $receiver_user_id ); 351 351 $to = $ud->user_email; 352 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES);352 $sitename = bp_get_option( 'blogname', 'WordPress' ); 353 353 $subject = '[' . $sitename . '] ' . sprintf( __( '%1$s mentioned you in the group "%2$s"', 'buddypress' ), $poster_name, $group->name ); 354 354 -
trunk/bp-friends/bp-friends-notifications.php
r6342 r6587 29 29 // Set up and send the message 30 30 $to = $ud->user_email; 31 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES);31 $sitename = bp_get_option( 'blogname', 'WordPress' ); 32 32 $subject = '[' . $sitename . '] ' . sprintf( __( 'New friendship request from %s', 'buddypress' ), $initiator_name ); 33 33 … … 68 68 // Set up and send the message 69 69 $to = $ud->user_email; 70 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES);70 $sitename = bp_get_option( 'blogname', 'WordPress' ); 71 71 $subject = '[' . $sitename . '] ' . sprintf( __( '%s accepted your friendship request', 'buddypress' ), $friend_name ); 72 72 -
trunk/bp-groups/bp-groups-notifications.php
r6342 r6587 17 17 18 18 $group = groups_get_group( array( 'group_id' => $group_id ) ); 19 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES);19 $sitename = bp_get_option( 'blogname', 'WordPress' ); 20 20 $subject = '[' . $sitename . '] ' . __( 'Group Details Updated', 'buddypress' ); 21 21 … … 74 74 // Set up and send the message 75 75 $to = $ud->user_email; 76 $sitename = wp_specialchars_decode( bp_get_option( 'blogname' ), ENT_QUOTES);76 $sitename = bp_get_option( 'blogname', 'WordPress' ); 77 77 $subject = '[' . $sitename . '] ' . sprintf( __( 'Membership request for group: %s', 'buddypress' ), $group->name ); 78 78 … … 123 123 // Set up and send the message 124 124 $to = $ud->user_email; 125 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES);125 $sitename = bp_get_option( 'blogname', 'WordPress' ); 126 126 127 127 if ( $accepted ) { … … 182 182 // Set up and send the message 183 183 $to = $ud->user_email; 184 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES);184 $sitename = bp_get_option( 'blogname', 'WordPress' ); 185 185 $subject = '[' . $sitename . '] ' . sprintf( __( 'You have been promoted in the group: "%s"', 'buddypress' ), $group->name ); 186 186 … … 232 232 // Set up and send the message 233 233 $to = $invited_ud->user_email; 234 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES);234 $sitename = bp_get_option( 'blogname', 'WordPress' ); 235 235 $subject = '[' . $sitename . '] ' . sprintf( __( 'You have an invitation to the group: "%s"', 'buddypress' ), $group->name ); 236 236 -
trunk/bp-members/bp-members-functions.php
r6574 r6587 1340 1340 $activate_url = esc_url( $activate_url ); 1341 1341 1342 $from_name = ( '' == bp_get_option( 'blogname' ) ) ? __( 'BuddyPress', 'buddypress' ) : esc_html( bp_get_option( 'blogname' ));1342 $from_name = bp_get_option( 'blogname', 'WordPress' ); 1343 1343 1344 1344 $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%1\$s\n\n", 'buddypress' ), $activate_url ); -
trunk/bp-messages/bp-messages-notifications.php
r6541 r6587 48 48 // Set up and send the message 49 49 $email_to = $ud->user_email; 50 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES);50 $sitename = bp_get_option( 'blogname', 'WordPress' ); 51 51 $email_subject = '[' . $sitename . '] ' . sprintf( __( 'New message from %s', 'buddypress' ), $sender_name ); 52 52
Note: See TracChangeset
for help on using the changeset viewer.