Skip to:
Content

BuddyPress.org

Changeset 10513


Ignore:
Timestamp:
02/04/2016 11:21:47 PM (4 years ago)
Author:
r-a-y
Message:

BP Email: Enhancements for private message emails.

  • Use stripslashes() for message subject and content.
  • Use the full message thread URL.

See #6592.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-notifications.php

    r10479 r10513  
    6161        $args = array(
    6262            'tokens' => array(
    63                 'usermessage' => wp_strip_all_tags( $message ),
    64                 'message.url' => esc_url( bp_core_get_user_domain( $recipient->user_id ) . bp_get_messages_slug() . '/' ),
     63                'usermessage' => wp_strip_all_tags( stripslashes( $message ) ),
     64                'message.url' => esc_url( bp_core_get_user_domain( $recipient->user_id ) . bp_get_messages_slug() . '/view/' . $thread_id . '/' ),
    6565                'sender.name' => $sender_name,
    66                 'usersubject' => sanitize_text_field( $subject ),
     66                'usersubject' => sanitize_text_field( stripslashes( $subject ) ),
    6767            ),
    6868        );
Note: See TracChangeset for help on using the changeset viewer.