pmpro-register-helper icon indicating copy to clipboard operation
pmpro-register-helper copied to clipboard

Field Value not displayed if field name is "title"

Open ipokkel opened this issue 4 years ago • 3 comments

Describe the bug When a custom field's name, and meta key, is title and the option to display the field in the profile is set to true the field is shown "empty" while data exist in the user meta table for this key. The field value is displayed as expected except on the user profile edit page in the administrative area.

To Reproduce Steps to reproduce the behavior:

  1. Create a custom registration text field named title and set option 'profile' => true, (sample recipe)
  2. Register new member and complete the custom registration field during checkout.
  3. In the administrative area, navigate to Users > All Users and select user to view details.
  4. Scroll down to "More Information" section to view "Title" field, field value is empty.
  5. Check front end profile page, export memberslist csv and database to confirm a value for this meta key exists.
  6. Load custom meta field display code to verify that meta key name is not reserved by WP

Expected behavior Field's value displays in the input field for the title field.

Isolating the problem (mark completed items with an [x]):

  • [x] I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
  • [x] This bug happens with a default WordPress theme active, or Memberlite.
  • [x] I can reproduce this bug consistently using the steps above.

ipokkel avatar Feb 23 '21 09:02 ipokkel