Changeset 3145 for branches/1.2/bp-friends/bp-friends-notifications.php
- Timestamp:
- 07/22/2010 11:09:28 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-friends/bp-friends-notifications.php
r2719 r3145 6 6 $initiator_name = bp_core_get_user_displayname( $initiator_id ); 7 7 8 if ( 'no' == get_user meta( (int)$friend_id, 'notification_friends_friendship_request') )8 if ( 'no' == get_user_meta( (int)$friend_id, 'notification_friends_friendship_request', true ) ) 9 9 return false; 10 10 … … 19 19 // Set up and send the message 20 20 $to = $ud->user_email; 21 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname') . '] ' . sprintf( __( 'New friendship request from %s', 'buddypress' ), $initiator_name );21 $subject = '[' . wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ) ) . '] ' . sprintf( __( 'New friendship request from %s', 'buddypress' ), $initiator_name ); 22 22 23 23 $message = sprintf( __( … … 48 48 $friend_name = bp_core_get_user_displayname( $friend_id ); 49 49 50 if ( 'no' == get_user meta( (int)$initiator_id, 'notification_friends_friendship_accepted') )50 if ( 'no' == get_user_meta( (int)$initiator_id, 'notification_friends_friendship_accepted', true ) ) 51 51 return false; 52 52 … … 58 58 // Set up and send the message 59 59 $to = $ud->user_email; 60 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname') . '] ' . sprintf( __( '%s accepted your friendship request', 'buddypress' ), $friend_name );60 $subject = '[' . wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ) ) . '] ' . sprintf( __( '%s accepted your friendship request', 'buddypress' ), $friend_name ); 61 61 62 62 $message = sprintf( __(
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)