Skip to:
Content

BuddyPress.org

Changeset 10611


Ignore:
Timestamp:
02/18/2016 09:42:16 AM (9 years ago)
Author:
djpaul
Message:

Emails: set default value of unsubscribe token to wp-login.php.

If the email recipient can't be found by get_user_by( 'email', ... ) on multisite configurations or when BP_SIGNUPS_SKIP_USER_CREATION is enabled, the unsubscribe link in the emails is empty.

In a future release, we may introduce logic in the template to not render this token if it is valueless, but for 2.5, we're setting it to the log in form. If a user who hasn't activated their account tries to log in, they will see a message informing them they need to activate their account first, which is good enough.

See #6915

File:
1 edited

Legend:

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

    r10602 r10611  
    10251025    $tokens['recipient.name']      = '';
    10261026    $tokens['recipient.username']  = '';
    1027     $tokens['unsubscribe']         = '';
     1027    $tokens['unsubscribe']         = site_url( 'wp-login.php' );
    10281028
    10291029
Note: See TracChangeset for help on using the changeset viewer.