Custom registration fields in DA theme

There was some problem in custom registration fields which got deleted when we click on premiumpress menu > configuration for second time after updating custom registration fields and i found out due to below logic custom registration fields are getting reset to empty. Please update this in future release, it will be helpful for others. In admin-2-userfields.php, it is updating option regfields to empty for the second time if we visit same admin menu again, i think update_option("regfields", ""); is not needed. if(isset($_POST) && current_user_can('administrator') ){ if(!isset($_POST['regfields'])){ update_option("regfields", ""); }else{ update_option("regfields", $_POST['regfields']); } } $regfields = get_option("regfields"); if(!is_array($regfields)){ $regfields = array(); }

Created: September 10, 2019 at 4:10 pm
  • In: Bugs & Issues
  • 2 members left 1 comments
  • Last reply from: Mark FailMark Fail

  • Mark Fail
    Mark Fail
    September 12, 2019 at 11:45 pm

    Thank you MURALIDHARAN.

    Ill have this sorted in the next update.

Viewing 2 posts - 1 through 2 (of 2 total)