Changeset 49206
- Timestamp:
- 10/19/2020 08:18:44 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r49130 r49206 544 544 // Has someone already signed up for this username? 545 545 $signup = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->signups WHERE user_login = %s", $user_name ) ); 546 if ( null != $signup) {546 if ( $signup instanceof stdClass ) { 547 547 $registered_at = mysql2date( 'U', $signup->registered ); 548 548 $now = time(); … … 557 557 558 558 $signup = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->signups WHERE user_email = %s", $user_email ) ); 559 if ( null != $signup) {559 if ( $signup instanceof stdClass ) { 560 560 $diff = time() - mysql2date( 'U', $signup->registered ); 561 561 // If registered more than two days ago, cancel registration and let this signup go through. … … 725 725 // TODO: Check email too? 726 726 $signup = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->signups WHERE domain = %s AND path = %s", $mydomain, $path ) ); 727 if ( ! empty( $signup )) {727 if ( $signup instanceof stdClass ) { 728 728 $diff = time() - mysql2date( 'U', $signup->registered ); 729 729 // If registered more than two days ago, cancel registration and let this signup go through.
Note: See TracChangeset
for help on using the changeset viewer.