Skip to:
Content

BuddyPress.org

Changeset 10606


Ignore:
Timestamp:
02/17/2016 01:03:18 AM (5 years ago)
Author:
dcavins
Message:

BP Email: Fix tokens for group invite email.

  • Make sure that the group

invitation-related actions
are referring to the
correct tokens.

  • Include the ID of the

inviter for use in the
deprecated actions.

Location:
trunk/src
Files:
2 edited

Legend:

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

    r10603 r10606  
    480480             * @param string          $settings_link Removed in 2.5; now an empty string.
    481481             */
    482             $value = apply_filters_ref_array( 'groups_notification_group_invites_message', array( $value, &$tokens['group'], $tokens['inviter-profile.name'], $tokens['inviter-profile.url'], $tokens['invites.url'], $tokens['group.url'], '' ) );
     482            $value = apply_filters_ref_array( 'groups_notification_group_invites_message', array( $value, &$tokens['group'], $tokens['inviter.name'], $tokens['inviter.url'], $tokens['invites.url'], $tokens['group.url'], '' ) );
    483483        }
    484484
     
    841841         * @param BP_Groups_Group $group            Group object.
    842842         */
    843         do_action( 'bp_groups_sent_invited_email', $tokens['inviter-profile.id'], $email_subject, $email_content, $tokens['group'] );
     843        do_action( 'bp_groups_sent_invited_email', $tokens['inviter.id'], $email_subject, $email_content, $tokens['group'] );
    844844
    845845    } elseif ( $email_type === 'groups-member-promoted' ) {
  • trunk/src/bp-groups/bp-groups-notifications.php

    r10510 r10606  
    285285            'inviter.name' => bp_core_get_userlink( $inviter_user_id, true, false, true ),
    286286            'inviter.url'  => bp_core_get_user_domain( $inviter_user_id ),
     287            'inviter.id'   => $inviter_user_id,
    287288            'invites.url'  => esc_url( $invited_link . '/invites/' ),
    288289        ),
Note: See TracChangeset for help on using the changeset viewer.