diff --git src/bp-core/bp-core-functions.php src/bp-core/bp-core-functions.php
index a77832674..4b6a28c71 100644
|
|
function bp_email_unsubscribe_handler() { |
4447 | 4447 | // This is an unsubscribe request from a nonmember. |
4448 | 4448 | } else if ( $raw_user_email ) { |
4449 | 4449 | // Unsubscribe. |
4450 | | if ( bp_user_has_opted_out() ) { |
| 4450 | if ( bp_user_has_opted_out( $raw_user_email ) ) { |
4451 | 4451 | $result_msg = $emails[ $raw_email_type ]['unsubscribe']['message']; |
4452 | 4452 | $unsub_msg = __( 'You have already unsubscribed from all communication from this site.', 'buddypress' ); |
4453 | 4453 | } else { |