Skip to:
Content

BuddyPress.org

Changeset 10510


Ignore:
Timestamp:
02/04/2016 10:21:58 PM (9 years ago)
Author:
dcavins
Message:

BP Email: Fix group email token mismatches.

Make sure that the token names sent to
bp_send_email() match the tokens used in the
email content template.

See #6873.

File:
1 edited

Legend:

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

    r10509 r10510  
    280280    $args         = array(
    281281        'tokens' => array(
    282             'group'                => $group,
    283             'group.url'            => bp_get_group_permalink( $group ),
    284             'group.name'           => $group->name,
    285             'inviter-profile.id'   => $invited_user_id,
    286             'inviter-profile.name' => bp_core_get_userlink( $inviter_user_id, true, false, true ),
    287             'inviter-profile.url'  => bp_core_get_user_domain( $inviter_user_id ),
    288             'invites.url'          => esc_url( $invited_link . '/invites/' ),
     282            'group'        => $group,
     283            'group.url'    => bp_get_group_permalink( $group ),
     284            'group.name'   => $group->name,
     285            'inviter.name' => bp_core_get_userlink( $inviter_user_id, true, false, true ),
     286            'inviter.url'  => bp_core_get_user_domain( $inviter_user_id ),
     287            'invites.url'  => esc_url( $invited_link . '/invites/' ),
    289288        ),
    290289    );
Note: See TracChangeset for help on using the changeset viewer.