Display name value not showing in user update form
-
I have added the display_name field to the wp-members registration form so a user can set his or her display name through the wp-members registration form. This works fine and the Display Name shows up correctly in places where it is used.
Except, when the user returns to the wp-members form for editing his/her profile, when the display_name field appears blank.
I have managed to track this problem down to an error in your code for the function wpmem_inc_registration which is included in the source file /inc/forms.php
In lines 1269-1302 of this file, the code is supposed to fetch existing values of fields that may be edited but fails to recognise that the value of display_name must be retrieved as a native field, not as meta data.
I have copied this function into the functions.php file in my theme and added the following lines to this section:
case ('display_name') : $val = $userdata->display_name; break;
and this fixes the problem.
Would be grateful if you could check this out and add the bug fix to a futire release.
- The topic ‘Display name value not showing in user update form’ is closed to new replies.