Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/07/2018 12:08:58 PM (7 years ago)
Author:
djpaul
Message:

Emails: add token email.subject to get email subject.

Fixes #7015

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-filters.php

    r11891 r11893  
    10371037    $tokens['site.admin-email'] = bp_get_option( 'admin_email' );
    10381038    $tokens['site.url']         = home_url();
     1039    $tokens['email.subject']    = $email->get_subject();
    10391040
    10401041    // These options are escaped with esc_html on the way into the database in sanitize_option().
     
    10481049    $tokens['recipient.username']  = '';
    10491050
    1050 
    10511051    // Who is the email going to?
    10521052    $recipient = $email->get( 'to' );
     
    10641064        if ( $user_obj ) {
    10651065            $tokens['recipient.username'] = $user_obj->user_login;
     1066
    10661067            if ( bp_is_active( 'settings' ) && empty( $tokens['unsubscribe'] ) ) {
    10671068                $tokens['unsubscribe'] = esc_url( sprintf(
Note: See TracChangeset for help on using the changeset viewer.