Changeset 2663 for trunk/bp-groups/bp-groups-notifications.php
- Timestamp:
- 02/11/2010 11:17:32 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-notifications.php
r2576 r2663 25 25 26 26 --------------------- 27 ', 'buddypress' ), stripslashes( $group->name ), $group_link );27 ', 'buddypress' ), $group->name, $group_link ); 28 28 29 29 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); … … 56 56 // Set up and send the message 57 57 $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 ); 59 59 60 60 $message = sprintf( __( … … 69 69 70 70 --------------------- 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 ); 72 72 73 73 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); … … 100 100 101 101 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 ); 103 103 $message = sprintf( __( 104 104 'Your membership request for the group "%s" has been accepted. … … 107 107 108 108 --------------------- 109 ', 'buddypress' ), stripslashes( $group->name ), $group_link );109 ', 'buddypress' ), $group->name, $group_link ); 110 110 111 111 } 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 ); 113 113 $message = sprintf( __( 114 114 'Your membership request for the group "%s" has been rejected. … … 117 117 118 118 --------------------- 119 ', 'buddypress' ), stripslashes( $group->name ), $group_link );119 ', 'buddypress' ), $group->name, $group_link ); 120 120 } 121 121 … … 152 152 $to = $ud->user_email; 153 153 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 ); 155 155 156 156 $message = sprintf( __( … … 160 160 161 161 --------------------- 162 ', 'buddypress' ), $promoted_to, stripslashes( $group->name ), $group_link );162 ', 'buddypress' ), $promoted_to, $group->name, $group_link ); 163 163 164 164 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); … … 196 196 $to = $invited_ud->user_email; 197 197 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 ); 199 199 200 200 $message = sprintf( __( … … 208 208 209 209 --------------------- 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 ); 211 211 212 212 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); … … 248 248 $ud = bp_core_get_core_userdata( $receiver_user_id ); 249 249 $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 ); 251 251 252 252 $message = sprintf( __( … … 258 258 259 259 --------------------- 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 ); 261 261 262 262 $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.