Changeset 3145 for branches/1.2/bp-activity/bp-activity-notifications.php
- Timestamp:
- 07/22/2010 11:09:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-activity/bp-activity-notifications.php
r2869 r3145 17 17 18 18 // Now email the user with the contents of the message (if they have enabled email notifications) 19 if ( 'no' != get_user meta( $receiver_user_id, 'notification_activity_new_mention') ) {19 if ( 'no' != get_user_meta( $receiver_user_id, 'notification_activity_new_mention', true ) ) { 20 20 $poster_name = bp_core_get_user_displayname( $poster_user_id ); 21 21 … … 29 29 $ud = bp_core_get_core_userdata( $receiver_user_id ); 30 30 $to = $ud->user_email; 31 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname') . '] ' . sprintf( __( '%s mentioned you in an update', 'buddypress' ), $poster_name );31 $subject = '[' . wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ) ) . '] ' . sprintf( __( '%s mentioned you in an update', 'buddypress' ), $poster_name ); 32 32 33 33 $message = sprintf( __( … … 61 61 $original_activity = new BP_Activity_Activity( $activity_id ); 62 62 63 if ( $original_activity->user_id != $commenter_id && 'no' != get_user meta( $original_activity->user_id, 'notification_activity_new_reply') ) {63 if ( $original_activity->user_id != $commenter_id && 'no' != get_user_meta( $original_activity->user_id, 'notification_activity_new_reply', true ) ) { 64 64 $poster_name = bp_core_get_user_displayname( $commenter_id ); 65 65 $thread_link = bp_activity_get_permalink( $activity_id ); … … 72 72 $ud = bp_core_get_core_userdata( $original_activity->user_id ); 73 73 $to = $ud->user_email; 74 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname') . '] ' . sprintf( __( '%s replied to one of your updates', 'buddypress' ), $poster_name );74 $subject = '[' . wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ) ) . '] ' . sprintf( __( '%s replied to one of your updates', 'buddypress' ), $poster_name ); 75 75 76 76 $message = sprintf( __( … … 103 103 $parent_comment = new BP_Activity_Activity( $parent_id ); 104 104 105 if ( $parent_comment->user_id != $commenter_id && $original_activity->user_id != $parent_comment->user_id && 'no' != get_user meta( $parent_comment->user_id, 'notification_activity_new_reply') ) {105 if ( $parent_comment->user_id != $commenter_id && $original_activity->user_id != $parent_comment->user_id && 'no' != get_user_meta( $parent_comment->user_id, 'notification_activity_new_reply', true ) ) { 106 106 $poster_name = bp_core_get_user_displayname( $commenter_id ); 107 107 $thread_link = bp_activity_get_permalink( $activity_id ); … … 111 111 $ud = bp_core_get_core_userdata( $parent_comment->user_id ); 112 112 $to = $ud->user_email; 113 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname') . '] ' . sprintf( __( '%s replied to one of your comments', 'buddypress' ), $poster_name );113 $subject = '[' . wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ) ) . '] ' . sprintf( __( '%s replied to one of your comments', 'buddypress' ), $poster_name ); 114 114 115 115 $poster_name = stripslashes( $poster_name );
Note: See TracChangeset
for help on using the changeset viewer.