Website not saved on registration
-
Hi,
I have recently setup a site using Profile Builder but have come across a bug.
The website field is not saved correctly when registering, but is saved when editing your profile.
It appears that when you register, the website is saved to the user’s metadata with key: user_url. However user_url is a property of the user and not the metadata.
Line1 157 of email-confirmation.php is as follows:
update_user_meta( $user_id, 'user_url', $meta['user_url'] ); If you add the following immediately after this, it works as expected.
wp_update_user(array(‘ID’ => $user_id, ‘user_url’ => $meta[‘user_url’]));
As mentioned when editing your profile it currently works as expected, this is because PB uses the wp_update_user function correctly here (Line 439 of class-formbuilder.php).
I’ve modified the plugin for now, but could get an official fix for this please?
Dave
- The topic ‘Website not saved on registration’ is closed to new replies.