WordPress.org

Make WordPress Core

Ticket #35778: 35778.2.diff

File 35778.2.diff, 409 bytes (added by EFAREM, 4 years ago)

Tab :O

  • 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