[Plugin: Register Plus] Bug in SaveProfile is updating as Admin
-
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
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘[Plugin: Register Plus] Bug in SaveProfile is updating as Admin’ is closed to new replies.