Changeset 11505 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.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-registration.php
r11485 r11505 337 337 $value = trim( sanitize_text_field( wp_unslash( $_POST['user_fields'][ $field ] ) ) ); 338 338 if ( 'url' == $field ) { 339 /** This filter is documented in wp-includes/user.php */ 340 $value = apply_filters( 'pre_user_url', $value ); 341 339 342 if ( $pending_user ) { 340 343 $pending_user['meta'][ $field ] = esc_url_raw( $value ); … … 367 370 $new_email !== $pending_user['user_email'] 368 371 ) { 372 /** This filter is documented in wp-includes/user.php */ 373 $new_email = apply_filters( 'pre_user_email', $new_email ); 374 369 375 // Validate the email 370 376 $error_user_email = rest_do_request( new WP_REST_Request( 'GET', '/wporg/v1/email-in-use/' . urlencode( $new_email ) ) );
Note: See TracChangeset
for help on using the changeset viewer.