Making WordPress.org


Ignore:
Timestamp:
09/18/2025 04:43:15 AM (11 months ago)
Author:
dd32
Message:

Registration: When creating a user, default their given name to their chosen user login.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.php

    r14511 r14532  
    401401                        ];
    402402
    403                         if( 'url' == $field ) {
     403                        if ( 'url' == $field ) {
    404404                                wp_update_user( [ 'ID' => $user_id, 'user_url' => $value ] );
    405405                        } else {
     
    417417                }
    418418        }
     419
     420        // Update their Profile name with their chosen user login for now.
     421        wporg_update_user_profile_fields( $user_id, 'Name', $user_login );
    419422
    420423        return get_user_by( 'id', $user_id );
Note: See TracChangeset for help on using the changeset viewer.