WordPress.org

Make WordPress Core

Ticket #35778: 35778.diff

File 35778.diff, 411 bytes (added by EFAREM, 4 years ago)

Updates the user info just after the user is created

  • src/wp-admin/includes/upgrade.php

     
    8585
    8686        $user = new WP_User($user_id);
    8787        $user->set_role('administrator');
     88   
     89   $user->user_url = $guessurl;
     90       
     91        wp_update_user($user);
    8892
    8993        wp_install_defaults($user_id);
    9094