Changeset 11862
- Timestamp:
- 02/21/2018 02:41:41 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.9/src/bp-core/bp-core-filters.php
r11541 r11862 1012 1012 $user = get_user_by( 'email', $tokens['recipient.email'] ); 1013 1013 1014 $headers['List-Unsubscribe'] = sprintf( 1015 '<%s>', 1016 esc_url_raw( bp_email_get_unsubscribe_link( array( 1017 'user_id' => $user->ID, 1018 'notification_type' => $email->get( 'type' ), 1019 ) ) ) 1020 ); 1014 $link = bp_email_get_unsubscribe_link( array( 1015 'user_id' => $user->ID, 1016 'notification_type' => $email->get( 'type' ), 1017 ) ); 1018 1019 if ( ! empty( $link ) ) { 1020 $headers['List-Unsubscribe'] = sprintf( '<%s>', esc_url_raw( $link ) ); 1021 } 1021 1022 } 1022 1023
Note: See TracChangeset
for help on using the changeset viewer.