Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/05/2023 01:34:04 PM (10 months ago)
Author:
dcavins
Message:

Membership Requests: Correct notification opt-out handling.

When encountering a user who has opted out of receiving
the email, skip to the next admin user. The return keyword
ends execution of the function, which we don't want.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-membership-requests.php

    r13485 r13590  
    178178        // Bail if member opted out of receiving this email.
    179179        if ( 'no' === bp_get_user_meta( $admin_id, 'notification_members_membership_request', true ) ) {
    180             return;
     180            continue;
    181181        }
    182182
Note: See TracChangeset for help on using the changeset viewer.