Ticket #8144: signup-activationkey.diff
File signup-activationkey.diff, 1.0 KB (added by , 5 years ago) |
---|
-
src/bp-members/classes/class-bp-signup.php
240 240 if ( ! empty( $signup->meta['sent_date'] ) ) { 241 241 $signup->date_sent = $signup->meta['sent_date']; 242 242 } else { 243 $signup->date_sent = $signup->registered; 243 if (!apply_filters('bp_core_signup_send_activation_key', true)) 244 $signup->date_sent = ''; 245 else 246 $signup->date_sent = $signup->registered; 244 247 } 245 248 246 249 $sent_at = mysql2date('U', $signup->date_sent ); … … 257 260 if ( ! empty( $signup->meta['count_sent'] ) ) { 258 261 $signup->count_sent = absint( $signup->meta['count_sent'] ); 259 262 } else { 260 $signup->count_sent = 1; 263 if (!apply_filters('bp_core_signup_send_activation_key', true)) 264 $signup->count_sent = 0; 265 else 266 $signup->count_sent = 1; 261 267 } 262 268 263 269 $paged_signups[ $key ] = $signup;