Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/01/2010 11:34:10 AM (15 years ago)
Author:
apeatling
Message:

Fixes #1657 props DJPaul

File:
1 edited

Legend:

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

    r2502 r2512  
    2424
    2525---------------------
    26 ', 'buddypress' ), stripslashes( attribute_escape( $group->name ) ), $group_link );
     26', 'buddypress' ), stripslashes( $group->name ), $group_link );
    2727
    2828        $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
     
    5555    // Set up and send the message
    5656    $to = $ud->user_email;
    57     $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group: %s', 'buddypress' ), stripslashes( attribute_escape( $group->name ) ) );
     57    $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group: %s', 'buddypress' ), stripslashes( $group->name ) );
    5858
    5959$message = sprintf( __(
     
    6868
    6969---------------------
    70 ', 'buddypress' ), $requesting_user_name, stripslashes( attribute_escape( $group->name ) ), $group_requests, $requesting_user_name, $profile_link );
     70', 'buddypress' ), $requesting_user_name, stripslashes( $group->name ), $group_requests, $requesting_user_name, $profile_link );
    7171
    7272    $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
     
    9999
    100100    if ( $accepted ) {
    101         $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" accepted', 'buddypress' ), stripslashes( attribute_escape( $group->name ) ) );
     101        $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" accepted', 'buddypress' ), stripslashes( $group->name ) );
    102102        $message = sprintf( __(
    103103'Your membership request for the group "%s" has been accepted.
     
    106106
    107107---------------------
    108 ', 'buddypress' ), stripslashes( attribute_escape( $group->name ) ), $group_link );
     108', 'buddypress' ), stripslashes( $group->name ), $group_link );
    109109
    110110    } else {
    111         $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" rejected', 'buddypress' ), stripslashes( attribute_escape( $group->name ) ) );
     111        $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" rejected', 'buddypress' ), stripslashes( $group->name ) );
    112112        $message = sprintf( __(
    113113'Your membership request for the group "%s" has been rejected.
     
    116116
    117117---------------------
    118 ', 'buddypress' ), stripslashes( attribute_escape( $group->name ) ), $group_link );
     118', 'buddypress' ), stripslashes( $group->name ), $group_link );
    119119    }
    120120
     
    151151    $to = $ud->user_email;
    152152
    153     $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have been promoted in the group: "%s"', 'buddypress' ), stripslashes( attribute_escape( $group->name ) ) );
     153    $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have been promoted in the group: "%s"', 'buddypress' ), stripslashes( $group->name ) );
    154154
    155155    $message = sprintf( __(
     
    159159
    160160---------------------
    161 ', 'buddypress' ), $promoted_to, stripslashes( attribute_escape( $group->name ) ), $group_link );
     161', 'buddypress' ), $promoted_to, stripslashes( $group->name ), $group_link );
    162162
    163163    $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
     
    195195        $to = $invited_ud->user_email;
    196196
    197         $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have an invitation to the group: "%s"', 'buddypress' ), stripslashes( attribute_escape( $group->name ) ) );
     197        $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have an invitation to the group: "%s"', 'buddypress' ), stripslashes( $group->name ) );
    198198
    199199        $message = sprintf( __(
     
    207207
    208208---------------------
    209 ', 'buddypress' ), $inviter_name, stripslashes( attribute_escape( $group->name ) ), $invites_link, $group_link, $inviter_name, $inviter_link );
     209', 'buddypress' ), $inviter_name, stripslashes( $group->name ), $invites_link, $group_link, $inviter_name, $inviter_link );
    210210
    211211        $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    212212
    213213        // Send it
     214        var_dump( $to, $subject, $message ); die;
    214215        wp_mail( $to, $subject, $message );
    215216    }
Note: See TracChangeset for help on using the changeset viewer.