Changeset 11073 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/register.php
- Timestamp:
- 06/29/2021 03:33:09 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.