Changeset 3300 for trunk/bp-messages/bp-messages-notifications.php
- Timestamp:
- 10/24/2010 09:22:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-notifications.php
r3232 r3300 8 8 9 9 foreach( $recipients as $recipient ) { 10 if ( $sender_id == $recipient->user_id || 'no' == get_user meta( $recipient->user_id, 'notification_messages_new_message') ) continue;10 if ( $sender_id == $recipient->user_id || 'no' == get_user_meta( $recipient->user_id, 'notification_messages_new_message', true ) ) continue; 11 11 12 12 $ud = get_userdata( $recipient->user_id ); … … 19 19 20 20 // Set up and send the message 21 $email_to = $ud->user_email; 22 $email_subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'New message from %s', 'buddypress' ), $sender_name ); 21 $email_to = $ud->user_email; 22 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES ); 23 $email_subject = '[' . $sitename . '] ' . sprintf( __( 'New message from %s', 'buddypress' ), $sender_name ); 23 24 24 25 $email_content = sprintf( __( 25 '% 1$s sent you a new message:26 '%s sent you a new message: 26 27 27 Subject: % 2$s28 Subject: %s 28 29 29 "% 3$s"30 "%s" 30 31 31 To view and read your messages please log in and visit: % 4$s32 To view and read your messages please log in and visit: %s 32 33 33 34 --------------------- 34 35 ', 'buddypress' ), $sender_name, $subject, $content, $message_link ); 35 36 36 $ content .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );37 $email_content .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 37 38 38 39 /* Send the message */
Note: See TracChangeset
for help on using the changeset viewer.