Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2010 11:17:32 AM (17 years ago)
Author:
apeatling
Message:

Fixes #1905

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-notifications.php

    r2576 r2663  
    2525
    2626---------------------
    27 ', 'buddypress' ), stripslashes( $group->name ), $group_link );
     27', 'buddypress' ), $group->name, $group_link );
    2828
    2929                $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    … …  
    5656        // Set up and send the message
    5757        $to = $ud->user_email;
    58         $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group: %s', 'buddypress' ), stripslashes( $group->name ) );
     58        $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group: %s', 'buddypress' ), $group->name );
    5959
    6060$message = sprintf( __(
    … …  
    6969
    7070---------------------
    71 ', 'buddypress' ), $requesting_user_name, stripslashes( $group->name ), $group_requests, $requesting_user_name, $profile_link );
     71', 'buddypress' ), $requesting_user_name, $group->name, $group_requests, $requesting_user_name, $profile_link );
    7272
    7373        $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    … …  
    100100
    101101        if ( $accepted ) {
    102                 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" accepted', 'buddypress' ), stripslashes( $group->name ) );
     102                $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" accepted', 'buddypress' ), $group->name );
    103103                $message = sprintf( __(
    104104'Your membership request for the group "%s" has been accepted.
    … …  
    107107
    108108---------------------
    109 ', 'buddypress' ), stripslashes( $group->name ), $group_link );
     109', 'buddypress' ), $group->name, $group_link );
    110110
    111111        } else {
    112                 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" rejected', 'buddypress' ), stripslashes( $group->name ) );
     112                $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" rejected', 'buddypress' ), $group->name );
    113113                $message = sprintf( __(
    114114'Your membership request for the group "%s" has been rejected.
    … …  
    117117
    118118---------------------
    119 ', 'buddypress' ), stripslashes( $group->name ), $group_link );
     119', 'buddypress' ), $group->name, $group_link );
    120120        }
    121121
    … …  
    152152        $to = $ud->user_email;
    153153
    154         $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have been promoted in the group: "%s"', 'buddypress' ), stripslashes( $group->name ) );
     154        $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have been promoted in the group: "%s"', 'buddypress' ), $group->name );
    155155
    156156        $message = sprintf( __(
    … …  
    160160
    161161---------------------
    162 ', 'buddypress' ), $promoted_to, stripslashes( $group->name ), $group_link );
     162', 'buddypress' ), $promoted_to, $group->name, $group_link );
    163163
    164164        $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    … …  
    196196                $to = $invited_ud->user_email;
    197197
    198                 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have an invitation to the group: "%s"', 'buddypress' ), stripslashes( $group->name ) );
     198                $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have an invitation to the group: "%s"', 'buddypress' ), $group->name );
    199199
    200200                $message = sprintf( __(
    … …  
    208208
    209209---------------------
    210 ', 'buddypress' ), $inviter_name, stripslashes( $group->name ), $invites_link, $group_link, $inviter_name, $inviter_link );
     210', 'buddypress' ), $inviter_name, $group->name, $invites_link, $group_link, $inviter_name, $inviter_link );
    211211
    212212                $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    … …  
    248248                        $ud = bp_core_get_core_userdata( $receiver_user_id );
    249249                        $to = $ud->user_email;
    250                         $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( '%s mentioned you in the group "%s"', 'buddypress' ), stripslashes( $poster_name ), wp_filter_kses( stripslashes( $group->name ) ) );
     250                        $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( '%s mentioned you in the group "%s"', 'buddypress' ), stripslashes( $poster_name ), $group->name );
    251251
    252252$message = sprintf( __(
    … …  
    258258
    259259---------------------
    260 ', 'buddypress' ), $poster_name, wp_filter_kses( stripslashes_deep( $group->name ) ), wp_filter_kses( stripslashes_deep($content) ), $message_link );
     260', 'buddypress' ), $poster_name, $group->name, bp_groups_filter_kses( stripslashes( $content ) ), $message_link );
    261261
    262262                        $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
Note: See TracChangeset for help on using the changeset viewer.