Changeset 11395 for trunk/src/bp-core/bp-core-filters.php
- Timestamp:
- 01/19/2017 08:44:53 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-filters.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-filters.php
r11032 r11395 1006 1006 $headers['X-BuddyPress-Type'] = $email->get( 'type' ); 1007 1007 1008 $tokens = $email->get_tokens(); 1009 1010 // Add 'List-Unsubscribe' header if applicable. 1011 if ( ! empty( $tokens['unsubscribe'] ) && $tokens['unsubscribe'] !== site_url( 'wp-login.php' ) ) { 1012 $user = get_user_by( 'email', $tokens['recipient.email'] ); 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 ); 1021 } 1022 1008 1023 return $headers; 1009 1024 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)