1 | Index: src/bp-members/classes/class-bp-signup.php |
---|
2 | =================================================================== |
---|
3 | --- src/bp-members/classes/class-bp-signup.php (revision 12476) |
---|
4 | +++ src/bp-members/classes/class-bp-signup.php (working copy) |
---|
5 | @@ -240,7 +240,10 @@ |
---|
6 | if ( ! empty( $signup->meta['sent_date'] ) ) { |
---|
7 | $signup->date_sent = $signup->meta['sent_date']; |
---|
8 | } else { |
---|
9 | - $signup->date_sent = $signup->registered; |
---|
10 | + if ( ! apply_filters( 'bp_core_signup_send_activation_key', true ) ) { |
---|
11 | + $signup->date_sent = ''; |
---|
12 | + } else { |
---|
13 | + $signup->date_sent = $signup->registered; |
---|
14 | } |
---|
15 | } |
---|
16 | |
---|
17 | $sent_at = mysql2date('U', $signup->date_sent ); |
---|
18 | @@ -257,7 +260,10 @@ |
---|
19 | if ( ! empty( $signup->meta['count_sent'] ) ) { |
---|
20 | $signup->count_sent = absint( $signup->meta['count_sent'] ); |
---|
21 | } else { |
---|
22 | - $signup->count_sent = 1; |
---|
23 | + if ( ! apply_filters( 'bp_core_signup_send_activation_key', true ) ) { |
---|
24 | + $signup->count_sent = 0; |
---|
25 | + } else { |
---|
26 | + $signup->count_sent = 1; |
---|
27 | } |
---|
28 | } |
---|
29 | |
---|
30 | $paged_signups[ $key ] = $signup; |
---|