WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Register Plus] Bug in SaveProfile is updating as Admin (5 posts)

  1. Texiwill
    Member
    Posted 4 years ago #

    Hello,

    There is a bug in SaveProfile that the following code will fix for WP 2.9.2

    function SaveProfile($user_ID){
    global $wpdb; #, $user_ID;
    #get_currentuserinfo();
    #if( $_GET['user_id'] ) $user_ID = $_GET['user_id'];

    The profile_update action actually passes the user_ID in question, if you use 'get_currentuserinfo' the 'admin' user is updated and not the real user you wish to update.

    Edward

    http://wordpress.org/extend/plugins/register-plus/

  2. skoolen87
    Member
    Posted 3 years ago #

    So what do I need to replace and where should I do this? Thanks in advance!!

  3. skoolen87
    Member
    Posted 3 years ago #

    I have tried the above code to replace the following which can be found in register-plus.php:
    function SaveProfile(){
    global $wpdb, $user_ID;
    get_currentuserinfo();
    if( $_GET['user_id'] ) $user_ID = $_GET['user_id'];

    Still, if someone registers, the additional information will not be shown in the profile page.. what should I do?

  4. kingpatterson
    Member
    Posted 3 years ago #

    doesn't make sense... what do you mean?

  5. km
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic