The MU forums have moved to WordPress.org

Why was this removed? (1 post)

  1. Konstan
    Member
    Posted 19 years ago #

    In the file /wp-includes/wpmu-functions.php the following was removed in rev1036:

    if ( empty($user->user_url) ) {
    $userdata = array();
    $userdata['ID'] = $user->id;
    $userdata['user_url'] = get_blogaddress_by_id($blog_id);
    $userdata['user_login'] = $user->user_login;
    wp_update_user($userdata);
    }

    So now user_url is blank when someone registers (sometimes it adds http:// in the entry). I found out about this because I noticed that the latest members who register in my wpmu install dont have their username link to their site in my bbpress integration.

    I checked the database and all the users registered after I upgraded to rev1036 have user_url blank or with http:// and nothing else.

    I checked the trunk for changes between rev1010 (the one I had) to rev1039 and it was the only instance of user_url removed but it wasnt added anywhere else.

    Why is this? And why does it sometimes add http:// now and leave some blank? I want to add those lines back in, but I dont want it to break something else.

    Anyone know why it was removed? Thanks.

    Edit: I added it back and now user_url does get populated so it works for me, but I'd still like to know why it was removed. Just to know if I should keep it or not.

About this Topic

  • Started 19 years ago by Konstan