Ticket #1905: 1905.002.diff
File 1905.002.diff, 5.7 KB (added by , 15 years ago) |
---|
-
bp-groups/bp-groups-notifications.php
24 24 To view the group: %s 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 ); 30 30 … … 55 55 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( __( 61 61 '%s wants to join the group "%s". … … 68 68 To view %s\'s profile: %s 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 ); 74 74 … … 99 99 $to = $ud->user_email; 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. 105 105 106 106 To view the group please login and visit: %s 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. 115 115 116 116 To submit another request please log in and visit: %s 117 117 118 118 --------------------- 119 ', 'buddypress' ), stripslashes( $group->name ), $group_link );119 ', 'buddypress' ), $group->name, $group_link ); 120 120 } 121 121 122 122 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); … … 151 151 // Set up and send the message 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( __( 157 157 'You have been promoted to %s for the group: "%s". … … 159 159 To view the group please visit: %s 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 ); 165 165 … … 195 195 // Set up and send the message 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( __( 201 201 'One of your friends %s has invited you to the group: "%s". … … 207 207 To view %s\'s profile visit: %s 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 ); 213 213 … … 247 247 // Set up and send the message 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( __( 253 253 '%s mentioned you in the group "%s": … … 257 257 To view and respond to the message, log in and visit: %s 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, wp_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 ); 263 263