Changeset 10941 for trunk/src/bp-core/bp-core-filters.php
- Timestamp:
- 07/10/2016 09:46:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-filters.php
r10899 r10941 1031 1031 $tokens['recipient.name'] = ''; 1032 1032 $tokens['recipient.username'] = ''; 1033 $tokens['unsubscribe'] = site_url( 'wp-login.php' );1034 1033 1035 1034 … … 1048 1047 1049 1048 if ( $user_obj ) { 1050 // Unsubscribe link.1051 $tokens['unsubscribe'] = esc_url( sprintf(1052 '%s%s/notifications/',1053 bp_core_get_user_domain( $user_obj->ID ),1054 function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'1055 ) );1056 1049 $tokens['recipient.username'] = $user_obj->user_login; 1057 } 1050 if ( bp_is_active( 'settings' ) && empty( $tokens['unsubscribe'] ) ) { 1051 $tokens['unsubscribe'] = esc_url( sprintf( 1052 '%s%s/notifications/', 1053 bp_core_get_user_domain( $user_obj->ID ), 1054 bp_get_settings_slug() 1055 ) ); 1056 } 1057 } 1058 } 1059 1060 // Set default unsubscribe link if not passed. 1061 if ( empty( $tokens['unsubscribe'] ) ) { 1062 $tokens['unsubscribe'] = site_url( 'wp-login.php' ); 1058 1063 } 1059 1064
Note: See TracChangeset
for help on using the changeset viewer.