Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/22/2010 11:09:28 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2523 props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-activity/bp-activity-notifications.php

    r2869 r3145  
    1717
    1818        // Now email the user with the contents of the message (if they have enabled email notifications)
    19         if ( 'no' != get_usermeta( $receiver_user_id, 'notification_activity_new_mention' ) ) {
     19        if ( 'no' != get_user_meta( $receiver_user_id, 'notification_activity_new_mention', true ) ) {
    2020            $poster_name = bp_core_get_user_displayname( $poster_user_id );
    2121
     
    2929            $ud = bp_core_get_core_userdata( $receiver_user_id );
    3030            $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 );
    3232
    3333$message = sprintf( __(
     
    6161    $original_activity = new BP_Activity_Activity( $activity_id );
    6262
    63     if ( $original_activity->user_id != $commenter_id && 'no' != get_usermeta( $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 ) ) {
    6464        $poster_name = bp_core_get_user_displayname( $commenter_id );
    6565        $thread_link = bp_activity_get_permalink( $activity_id );
     
    7272        $ud = bp_core_get_core_userdata( $original_activity->user_id );
    7373        $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 );
    7575
    7676$message = sprintf( __(
     
    103103    $parent_comment = new BP_Activity_Activity( $parent_id );
    104104
    105     if ( $parent_comment->user_id != $commenter_id && $original_activity->user_id != $parent_comment->user_id && 'no' != get_usermeta( $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 ) ) {
    106106        $poster_name = bp_core_get_user_displayname( $commenter_id );
    107107        $thread_link = bp_activity_get_permalink( $activity_id );
     
    111111        $ud = bp_core_get_core_userdata( $parent_comment->user_id );
    112112        $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 );
    114114
    115115        $poster_name = stripslashes( $poster_name );
Note: See TracChangeset for help on using the changeset viewer.