Changeset 44809 for trunk/src/wp-includes/ms-functions.php
- Timestamp:
- 03/07/2019 09:11:37 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r44469 r44809 519 519 if ( $signup != null ) { 520 520 $registered_at = mysql2date( 'U', $signup->registered ); 521 $now = current_time( 'timestamp', true);521 $now = time(); 522 522 $diff = $now - $registered_at; 523 523 // If registered more than two days ago, cancel registration and let this signup go through. … … 531 531 $signup = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->signups WHERE user_email = %s", $user_email ) ); 532 532 if ( $signup != null ) { 533 $diff = current_time( 'timestamp', true) - mysql2date( 'U', $signup->registered );533 $diff = time() - mysql2date( 'U', $signup->registered ); 534 534 // If registered more than two days ago, cancel registration and let this signup go through. 535 535 if ( $diff > 2 * DAY_IN_SECONDS ) { … … 689 689 $signup = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->signups WHERE domain = %s AND path = %s", $mydomain, $path ) ); // TODO: Check email too? 690 690 if ( ! empty( $signup ) ) { 691 $diff = current_time( 'timestamp', true) - mysql2date( 'U', $signup->registered );691 $diff = time() - mysql2date( 'U', $signup->registered ); 692 692 // If registered more than two days ago, cancel registration and let this signup go through. 693 693 if ( $diff > 2 * DAY_IN_SECONDS ) {
Note: See TracChangeset
for help on using the changeset viewer.