Changeset 11073
- Timestamp:
- 06/29/2021 03:33:09 AM (3 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.php
r10990 r11073 367 367 ) { 368 368 // Validate the email 369 $error_user_email = rest_do_request( new WP_REST_Request( 'GET', '/wporg/v1/email-in-use/' . $new_email) );369 $error_user_email = rest_do_request( new WP_REST_Request( 'GET', '/wporg/v1/email-in-use/' . urlencode( $new_email ) ) ); 370 370 if ( $error_user_email->get_data()['available'] ) { 371 371 // Change their email, resend confirmation. -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/register.php
r11046 r11073 24 24 if ( $_POST ) { 25 25 26 $error_user_login = rest_do_request( new WP_REST_Request( 'GET', '/wporg/v1/username-available/' . $user_login) );26 $error_user_login = rest_do_request( new WP_REST_Request( 'GET', '/wporg/v1/username-available/' . urlencode( $user_login ) ) ); 27 27 if ( $error_user_login->get_data()['available'] ) { 28 28 $error_user_login = false; 29 29 } 30 30 31 $error_user_email = rest_do_request( new WP_REST_Request( 'GET', '/wporg/v1/email-in-use/' . $user_email) );31 $error_user_email = rest_do_request( new WP_REST_Request( 'GET', '/wporg/v1/email-in-use/' . urlencode( $user_email ) ) ); 32 32 if ( $error_user_email->get_data()['available'] ) { 33 33 $error_user_email = false;
Note: See TracChangeset
for help on using the changeset viewer.