Changeset 11505 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-restapi.php
- Timestamp:
- 02/02/2022 08:40:57 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-restapi.php
r11081 r11505 75 75 $email = trim( urldecode( $request['email'] ) ); 76 76 77 if ( ! is_email( $email ) ) { 78 return [ 79 'available' => false, 80 'error' => __( 'That email address appears to be invalid.', 'wporg' ), 81 ]; 82 } 83 77 84 if ( $user = get_user_by( 'email', $email ) ) { 78 85 return [ … … 88 95 89 96 // And that there's no pending account signups for other emails for that inbox. 90 if ( ! $pending && false !== strpos( $email, '+' ) ) {97 if ( ! $pending && str_contains( $email, '+' ) ) { 91 98 $pending = wporg_get_pending_user_by_email_wildcard( $email ); 92 99 }
Note: See TracChangeset
for help on using the changeset viewer.