Texiwill
Member
Posted 2 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/
skoolen87
Member
Posted 1 year ago #
So what do I need to replace and where should I do this? Thanks in advance!!
skoolen87
Member
Posted 1 year 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?
kingpatterson
Member
Posted 1 year ago #
doesn't make sense... what do you mean?