Changeset 11863 for trunk/src/bp-core/bp-core-filters.php
- Timestamp:
- 02/21/2018 02:42:25 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-filters.php
r11763 r11863 1009 1009 $user = get_user_by( 'email', $tokens['recipient.email'] ); 1010 1010 1011 $headers['List-Unsubscribe'] = sprintf( 1012 '<%s>', 1013 esc_url_raw( bp_email_get_unsubscribe_link( array( 1014 'user_id' => $user->ID, 1015 'notification_type' => $email->get( 'type' ), 1016 ) ) ) 1017 ); 1011 $link = bp_email_get_unsubscribe_link( array( 1012 'user_id' => $user->ID, 1013 'notification_type' => $email->get( 'type' ), 1014 ) ); 1015 1016 if ( ! empty( $link ) ) { 1017 $headers['List-Unsubscribe'] = sprintf( '<%s>', esc_url_raw( $link ) ); 1018 } 1018 1019 } 1019 1020
Note: See TracChangeset
for help on using the changeset viewer.