User Registration – Custom Registration Form, Login Form And User Profile For WordPress - Version 2.1.4.2

Version Description

  • 04/03/2022
  • Fix - Conditional assign role not working.
  • Fix - Inline email content on save.
  • Fix - Conditional logic not working.
  • Fix - Multi select2 value not being saved in edit profile.
  • Fix - Multiple profile updated email to admin.
Download this release

Release Info

Developer wpeverestdev
Plugin Icon 128x128 User Registration – Custom Registration Form, Login Form And User Profile For WordPress
Version 2.1.4.2
Comparing to
See all releases

Code changes from version 2.1.4.1 to 2.1.4.2

assets/js/frontend/user-registration.js CHANGED
@@ -949,9 +949,9 @@
949
  * @since 1.8.5
950
  */
951
  edit_profile_event: function () {
952
- $("form.user-registration-EditProfileForm").on(
953
- "submit",
954
- function (event) {
955
  var $this = $(this);
956
 
957
  // Validator messages.
@@ -1153,8 +1153,7 @@
1153
  );
1154
  },
1155
  });
1156
- }
1157
- );
1158
  },
1159
  };
1160
  form.init();
949
  * @since 1.8.5
950
  */
951
  edit_profile_event: function () {
952
+ $("form.user-registration-EditProfileForm")
953
+ .off("submit")
954
+ .on("submit", function (event) {
955
  var $this = $(this);
956
 
957
  // Validator messages.
1153
  );
1154
  },
1155
  });
1156
+ });
 
1157
  },
1158
  };
1159
  form.init();
assets/js/frontend/user-registration.min.js CHANGED
@@ -1 +1 @@
1
- function ur_includes(e,r){if(Array.isArray(e))for(var t=0;t<e.length;t+=1)if(e[t]===r)return!0;return!1}!function(m){var e=function(){var u=user_registration_params.ursL10n;m.fn.ur_form_submission=function(){return this.each(function(){var p=m(this),o=[],d=user_registration_params.form_required_fields,c={init:function(){},get_form_data:function(e){if(e===p.closest(".ur-frontend-form").attr("id")||m(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")){var f=this,a=[],e=c.separate_form_handler(""),i=new Array;m.each(e,function(){var e,r,t=m(this).attr("name");c.separate_form_handler('[name="'+t+'"]').length<2?(e=f.get_fieldwise_data(m(this)),r=document.querySelector(".field-invite_code"),"invite_code"===e.field_name&&"none"===r.style.display||a.push(e)):m.inArray(t,i)<0&&i.push(t)});for(var r=0;r<i.length;r++){var t=c.separate_form_handler('[name="'+i[r]+'"]'),s=(t.get(0).tagName.toLowerCase(),"undefined"!==t.eq(0).attr("type")?t.eq(0).attr("type"):"null"),n=new Array;if(m.each(t,function(){var e=m(this),r="";switch(e.get(0).tagName.toLowerCase()){case"input":switch(s){case"checkbox":case"radio":r=e.prop("checked")?e.val():"";break;default:r=e.val()}break;case"select":case"textarea":r=e.val()}""!==r&&n.push(r)}),"checkbox"==s)if("multiple_choice"==t.eq(0).attr("data-field"))for(var o=n,d=0,u=0;u<o.length;u++)d+=o[u]<<0;else var d=JSON.stringify(n);else d="radio"==s?n[0]:t.val();var l=(l=i[r]).replace("[]",""),t={value:d,field_type:s,label:t.eq(0).attr("data-label"),field_name:l};a.push(t)}return m(document).trigger("user_registration_frontend_form_data_filter",[a]),a}},get_fieldwise_data:function(e){var r={},t=e.get(0).tagName.toLowerCase(),a="undefined"!==e.attr("name")?e.attr("name"):"null",i=[],s=(m(".field-phone").each(function(){var e=m(this).find(".form-row").attr("id");m(this).find(".form-row").find("#"+e).hasClass("ur-smart-phone-field")&&i.push(m(this).find(".form-row").attr("id"))}),"undefined"!==e.attr("type")?e.attr("type"):"null"),n=e.get(0).className.split(" ")[0];switch(r.value="",t){case"input":switch(s){case"checkbox":case"radio":r.value=e.prop("checked")?e.val():"";break;default:r.value=e.val()}ur_includes(i,a)&&(r.value=e.siblings('input[type="hidden"]').val());break;case"select":r.value=e.val();break;case"textarea":"wysiwyg"===n&&tinyMCE.triggerSave(),r.value=e.val()}return m(document).trigger("user_registration_frontend_form_data_render",[e,r]),r.field_type="undefined"!==e.eq(0).attr("type")?e.eq(0).attr("type"):"null",e.attr("data-label")!==undefined?r.label=e.attr("data-label"):e.prev().length&&"label"===e.prev().get(0).tagName.toLowerCase()?r.label=e.prev().text():r.label=r.field_type,e.attr("name")!==undefined&&""!==e.attr("name")?(r.field_name=e.attr("name"),r.field_name=r.field_name.replace("[]","")):r.field_name="",0<=m.inArray(r.field_name,d.join(",").trim())&&o.push(r.field_name),r},show_message:function(e,r,t,a){var i;t.closest(".user-registration").find(".ur-message").remove(),m(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")?((i=m('<div class="user-registration-'+r+'"/>')).append(e),m(".user-registration").find(".user-registration-MyAccount-navigation").length?i.insertBefore(".user-registration-MyAccount-navigation"):i.insertBefore(".ur-frontend-form")):((i=m('<div class="ur-message user-registration-'+r+'" id="ur-submit-message-node"/>')).append(e),"1"===a?t.append(i):t.prepend(i))},separate_form_handler:function(e){return m(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")?p.find(".user-registration-profile-fields").find(".ur-edit-profile-field"+e):p.closest(".ur-frontend-form").find(".ur-form-grid").find(".ur-frontend-field"+e)},missing_attachment_handler:function(e){var r=[];if(1<=e.length){e.each(function(){var e=m(this).attr("id");-1===m.inArray(e,r)&&r.push(e)});for(var t=0;t<r.length;t++){for(var a=m("#"+r[t]).val().split(","),i=a.length;0<=i;i--)m.isNumeric(a[i])||a.splice(i,1);m("#"+r[t]).val(a)}}}},e={init:function(){this.form_submit_event(),this.edit_profile_event()},form_submit_event:function(){m(".ur-frontend-form").each(function(){m(this).find("form.register").off("submit").on("submit",function(e){e.preventDefault();var n=m(this);if(m.extend(m.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields,confirmpassword:user_registration_params.message_confirm_password_fields}),0<n.find(".user-registration-password-strength").length){var e=n.find(".user-registration-password-strength").attr("data-current-strength"),r=n.find(".user-registration-password-strength").attr("data-min-strength");if(parseInt(e,0)<parseInt(r,0))return""!=n.find("#user_pass").val()&&(n.find("#user_pass_error").remove(),e='<label id="user_pass_error" class="user-registration-error" for="user_pass">'+u.password_strength_error+".</label>",n.find(".user-registration-password-hint").after(e),n.find("#user_pass").attr("aria-invalid",!0),n.find("#user_pass").trigger("focus")),!1}r=n.find(".ur-smart-phone-field");if("true"===r.attr("aria-invalid"))return(t=r.closest("p.form-row")).find("#"+r.data("id")+"-error").remove(),e='<label id="'+r.data("id")+'-error" class="user-registration-error" for="'+r.data("id")+'">'+user_registration_params.message_validate_phone_number+"</label>",t.append(e),t.find("#"+r.data("id")).attr("aria-invalid",!0),!0;e=n.find(".urfu-file-input");if(c.missing_attachment_handler(e),1===n.find(".uraf-profile-picture-upload").find(".user-registration-error").length&&(r=n.find(".uraf-profile-picture-upload").find(".uraf-profile-picture-input"),(t=n.find(".uraf-profile-picture-upload")).find("#"+r.attr("name")+"-error").remove(),t.find(".uraf-profile-picture-file-error").remove(),e='<label id="'+r.attr("name")+'-error" class="user-registration-error" for="'+r.attr("name")+'">'+user_registration_params.message_required_fields+"</label>",t.find("button.wp_uraf_profile_picture_upload").after(e)),n.valid()){n.find(".ur-submit-button").prop("disabled",!0);var r=0,t="0",e="",e=("hcaptcha"===user_registration_params.recaptcha_type?n.find('[name="h-captcha-response"]'):n.find('[name="g-recaptcha-response"]')).val();try{a=JSON.stringify(c.get_form_data(n.closest(".ur-frontend-form").attr("id")))}catch(i){a=""}1===m(this).closest("form").find('input[name="ur-user-form-id"]').length&&(r=m(this).closest("form").find('input[name="ur-user-form-id"]').val()),1===m(this).closest("form").find('input[name="ur_frontend_form_nonce"]').length&&(t=m(this).closest("form").find('input[name="ur_frontend_form_nonce"]').val());var a={action:"user_registration_user_form_submit",security:user_registration_params.user_registration_form_data_save,form_data:a,captchaResponse:e,form_id:r,ur_frontend_form_nonce:t},e={};if(m(document).trigger("user_registration_frontend_before_form_submit",[a,n,e]),"undefined"!=typeof e.message&&""!==e.message)return c.show_message("<p>"+e.message+"</p>","error",n,"1"),void n.find(".ur-submit-button").prop("disabled",!1);n.find(".ur-submit-button").find("span").addClass("ur-front-spinner"),m.ajax({url:user_registration_params.ajax_url,data:a,type:"POST","async":!0,complete:function(e){var r=[];if(r.status=!1,m(document).trigger("user_registration_frontend_before_ajax_complete_success_message",[e,r]),!r.status){n.find(".ur-submit-button").find("span").removeClass("ur-front-spinner");var t=n.find('input[name="ur-redirect-url"]').val(),a=m('<ul class=""/>'),r="error";try{var i=JSON.parse(e.responseText);"undefined"!=typeof i.success&&!0===i.success&&"undefined"!=typeof i.data.paypal_redirect&&(window.location=i.data.paypal_redirect),"message"===(r="undefined"!=typeof i.success&&!0===i.success?"message":r)?(n.find(".user-registration-password-hint").remove(),n.find(".user-registration-password-strength").remove(),"admin_approval"==i.data.form_login_option?a.append("<li>"+u.user_under_approval+"</li>"):"email_confirmation"==i.data.form_login_option||"admin_approval_after_email_confirmation"==i.data.form_login_option?a.append("<li>"+u.user_email_pending+"</li>"):"payment"==i.data.form_login_option?a.append("<li>"+i.data.message+"</li>"):a.append((i.data.message,u.user_successfully_saved)),"undefined"!=typeof i.data.auto_password_generation_success_message&&a.append("<li>"+i.data.auto_password_generation_success_message+"</li>"),n[0].reset(),jQuery("#billing_country").trigger("change"),jQuery("#shipping_country").trigger("change"),void 0!==(t="undefined"!=typeof i.data.role_based_redirect_url?i.data.role_based_redirect_url:t)&&""!==t?window.setTimeout(function(){window.location=t},1e3):"undefined"!=typeof i.data.auto_login&&i.data.auto_login&&location.reload()):"error"===r&&("object"==typeof i.data.message?m.each(i.data.message,function(e,r){a.append("<li>"+r+"</li>")}):a.append("<li>"+i.data.message+"</li>"))}catch(s){a.append("<li>"+s.message+"</li>")}i=JSON.parse(e.responseText).data.success_message_positon;c.show_message(a,r,n,i),"1"===i?m(window).scrollTop(n.find(".ur-button-container").offset().top):m(window).scrollTop(n.closest(".ur-frontend-form").offset().top),m(document).trigger("user_registration_frontend_after_ajax_complete",[e.responseText,r,n]),n.find(".ur-submit-button").prop("disabled",!1)}}})}})})},edit_profile_event:function(){m("form.user-registration-EditProfileForm").on("submit",function(e){var s=m(this),r=(m.extend(m.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields}),s.find(".ur-smart-phone-field"));if("true"===r.attr("aria-invalid"))return(n=r.closest("p.form-row")).find("#"+r.data("id")+"-error").remove(),t='<label id="'+r.data("id")+'-error" class="user-registration-error" for="'+r.data("id")+'">'+user_registration_params.message_validate_phone_number+"</label>",n.append(t),n.find("#"+r.data("id")).attr("aria-invalid",!0),!0;if(1===s.find(".uraf-profile-picture-upload").find(".user-registration-error").length&&(t=s.find(".uraf-profile-picture-upload").find(".uraf-profile-picture-input"),(n=s.find(".uraf-profile-picture-upload")).find("#"+t.attr("name")+"-error").remove(),n.find(".uraf-profile-picture-file-error").remove(),r='<label id="'+t.attr("name")+'-error" class="user-registration-error" for="'+t.attr("name")+'">'+user_registration_params.message_required_fields+"</label>",n.find("button.wp_uraf_profile_picture_upload").after(r)),s.valid()){e.preventDefault(),s.find(".user-registration-submit-Button").prop("disabled",!0);var t=s.find(".urfu-file-input");c.missing_attachment_handler(t);try{var a=c.get_form_data(),i=m("#profile_pic_url").val();a.push({value:i,field_name:"user_registration_profile_pic_url"}),a=JSON.stringify(a)}catch(o){a=""}var n={action:"user_registration_update_profile_details",security:user_registration_params.user_registration_profile_details_save,form_data:a};s.find(".user-registration-submit-Button").find("span").addClass("ur-front-spinner"),m.ajax({type:"POST",url:user_registration_params.ajax_url,dataType:"JSON",data:n,complete:function(e){s.find("span.ur-front-spinner").removeClass("ur-front-spinner"),s.closest(".user-registration").find(".user-registration-error").remove(),s.closest(".user-registration").find(".user-registration-message").remove();var t=m('<ul class=""/>'),r="error";try{var a=JSON.parse(e.responseText);"undefined"!=typeof a.success&&!0===a.success&&(r="message"),"object"==typeof a.data.message?m.each(a.data.message,function(e,r){t.append("<li>"+r+"</li>")}):t.append("<li>"+a.data.message+"</li>")}catch(i){t.append("<li>"+i.message+"</li>")}c.show_message(t,r,s,"0"),s.find(".user-registration-submit-Button").prop("disabled",!1),m(window).scrollTop(m(".user-registration").position())}})}})}};c.init(),e.init()})},m(function(){m(".ur-submit-button").on("click",function(){m(this).closest("form.register").ur_form_submission()}),m(".user-registration-submit-Button").on("click",function(){m(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")&&"yes"===user_registration_params.ajax_submission_on_edit_profile&&m("form.user-registration-EditProfileForm").ur_form_submission()});var i={};m(document.body).on("click","#load_flatpickr",function(){var e,r,a=m(this).data("id"),t=i[a];t||(e=m(this).closest(".ur-field-item").find("#formated_date").val(),r=(0<m(".ur-frontend-form").length?m(".ur-frontend-form #"+a):m(".woocommerce-MyAccount-content #"+a)).attr("type","text").val(e),m(this).attr("data-date-format",r.data("date-format")),m(this).attr("data-mode",r.data("mode")),m(this).attr("data-min-date",r.data("min-date")),m(this).attr("data-max-date",r.data("max-date")),m(this).attr("data-default-date",e),t=m(this).flatpickr({disableMobile:!0,onChange:function(e,r,t){m("#"+a).val(r)}}),i[a]=t),t&&t.open()}),m(".ur-frontend-form").each(function(){m(this).find("form.register").on("focusout","#user_pass, #password_1",function(){$this=m(this);var e,r,t=m(this).attr("name"),a=m(this).data("id"),i=$this.closest("form").attr("data-enable-strength-password");"yes"!==i&&"1"!==i||(e=(i=$this.closest("form")).attr("data-minimum-password-strength"),r=[],(r="function"==typeof wp.passwordStrength.userInputDisallowedList?wp.passwordStrength.userInputDisallowedList():wp.passwordStrength.userInputBlacklist()).push(i.find('input[data-id="user_email"]').val()),r.push(i.find('input[data-id="user_login"]').val()),wp.passwordStrength.meter($this.val(),r)<e&&""!==$this.val()&&(i.find("#"+a+"_error").remove(),r='<label id="'+a+'_error" class="user-registration-error" for="'+t+'">'+u.password_strength_error+".</label>",i.find(".user-registration-password-hint").after(r)))})})}),m(function(){0<m(".user-registration-EditProfileForm.edit-profile .field-country").length&&m(".field-country").each(function(){var e=m(this).find(".ur-data-holder").data("option-value"),r=m(this).find(".ur-data-holder").data("option-html"),t=m(this).find("select");e&&r&&(0===t.find('option[value="'+e+'"]').length&&t.append("<option class='ur-remove' selected='selected' value='"+e+"'>"+r+"</option>"),m(this).on("click",function(){m(this).find(".ur-remove").remove()}))})})};m(function(){m(".input-checkbox").each(function(){var e=m(this).attr("data-id");m('input[name="'+e+'[]"]:checked').length==m('[data-id = "'+e+'" ]').length&&m('[data-check = "'+e+'" ]').prop("checked",!0)}),m('input[type="checkbox"]#checkall').on("click",function(){var e=m(this).attr("data-check");m('[data-id = "'+e+'" ]').prop("checked",m(this).prop("checked"))}),m(".input-checkbox").on("change",function(){var e=m(this).attr("data-id");!1===m(this).prop("checked")&&m('[data-check = "'+e+'" ]').prop("checked",!1),m('input[name="'+e+'[]"]:checked').length==m('[data-id = "'+e+'" ]').length&&m('[data-check = "'+e+'" ]').prop("checked",!0)})}),e(),m(window).on("load",function(){e()})}(jQuery),function(a){a(document).on("click",".password_preview",function(e){e.preventDefault();var r=user_registration_params.ursL10n,e=a(this).hasClass("dashicons-hidden")?"show":"hide",t=a(this).closest(".user-registration-form-row").find('input[name="password"]');if(0<(t=0===(t=0===(t=0===(t=0===(t=0===t.length?a(this).closest(".field-user_pass").find('input[name="user_pass"]'):t).length?a(this).closest(".field-user_confirm_password").find('input[name="user_confirm_password"]'):t).length?a(this).closest(".user-registration-form-row").find('input[name="password_current"]'):t).length?a(this).closest(".user-registration-form-row").find('input[name="password_1"]'):t).length?a(this).closest(".user-registration-form-row").find('input[name="password_2"]'):t).length)switch(e){case"show":t.attr("type","text"),a(this).removeClass("dashicons-hidden").addClass("dashicons-visibility"),a(this).attr("title",r.hide_password_title);break;case"hide":t.attr("type","password"),a(this).removeClass("dashicons-visibility").addClass("dashicons-hidden"),a(this).attr("title",r.show_password_title)}})}(jQuery);
1
+ function ur_includes(e,r){if(Array.isArray(e))for(var t=0;t<e.length;t+=1)if(e[t]===r)return!0;return!1}!function(m){var e=function(){var u=user_registration_params.ursL10n;m.fn.ur_form_submission=function(){return this.each(function(){var p=m(this),o=[],d=user_registration_params.form_required_fields,c={init:function(){},get_form_data:function(e){if(e===p.closest(".ur-frontend-form").attr("id")||m(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")){var f=this,a=[],e=c.separate_form_handler(""),i=new Array;m.each(e,function(){var e,r,t=m(this).attr("name");c.separate_form_handler('[name="'+t+'"]').length<2?(e=f.get_fieldwise_data(m(this)),r=document.querySelector(".field-invite_code"),"invite_code"===e.field_name&&"none"===r.style.display||a.push(e)):m.inArray(t,i)<0&&i.push(t)});for(var r=0;r<i.length;r++){var t=c.separate_form_handler('[name="'+i[r]+'"]'),s=(t.get(0).tagName.toLowerCase(),"undefined"!==t.eq(0).attr("type")?t.eq(0).attr("type"):"null"),n=new Array;if(m.each(t,function(){var e=m(this),r="";switch(e.get(0).tagName.toLowerCase()){case"input":switch(s){case"checkbox":case"radio":r=e.prop("checked")?e.val():"";break;default:r=e.val()}break;case"select":case"textarea":r=e.val()}""!==r&&n.push(r)}),"checkbox"==s)if("multiple_choice"==t.eq(0).attr("data-field"))for(var o=n,d=0,u=0;u<o.length;u++)d+=o[u]<<0;else var d=JSON.stringify(n);else d="radio"==s?n[0]:t.val();var l=(l=i[r]).replace("[]",""),t={value:d,field_type:s,label:t.eq(0).attr("data-label"),field_name:l};a.push(t)}return m(document).trigger("user_registration_frontend_form_data_filter",[a]),a}},get_fieldwise_data:function(e){var r={},t=e.get(0).tagName.toLowerCase(),a="undefined"!==e.attr("name")?e.attr("name"):"null",i=[],s=(m(".field-phone").each(function(){var e=m(this).find(".form-row").attr("id");m(this).find(".form-row").find("#"+e).hasClass("ur-smart-phone-field")&&i.push(m(this).find(".form-row").attr("id"))}),"undefined"!==e.attr("type")?e.attr("type"):"null"),n=e.get(0).className.split(" ")[0];switch(r.value="",t){case"input":switch(s){case"checkbox":case"radio":r.value=e.prop("checked")?e.val():"";break;default:r.value=e.val()}ur_includes(i,a)&&(r.value=e.siblings('input[type="hidden"]').val());break;case"select":r.value=e.val();break;case"textarea":"wysiwyg"===n&&tinyMCE.triggerSave(),r.value=e.val()}return m(document).trigger("user_registration_frontend_form_data_render",[e,r]),r.field_type="undefined"!==e.eq(0).attr("type")?e.eq(0).attr("type"):"null",e.attr("data-label")!==undefined?r.label=e.attr("data-label"):e.prev().length&&"label"===e.prev().get(0).tagName.toLowerCase()?r.label=e.prev().text():r.label=r.field_type,e.attr("name")!==undefined&&""!==e.attr("name")?(r.field_name=e.attr("name"),r.field_name=r.field_name.replace("[]","")):r.field_name="",0<=m.inArray(r.field_name,d.join(",").trim())&&o.push(r.field_name),r},show_message:function(e,r,t,a){var i;t.closest(".user-registration").find(".ur-message").remove(),m(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")?((i=m('<div class="user-registration-'+r+'"/>')).append(e),m(".user-registration").find(".user-registration-MyAccount-navigation").length?i.insertBefore(".user-registration-MyAccount-navigation"):i.insertBefore(".ur-frontend-form")):((i=m('<div class="ur-message user-registration-'+r+'" id="ur-submit-message-node"/>')).append(e),"1"===a?t.append(i):t.prepend(i))},separate_form_handler:function(e){return m(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")?p.find(".user-registration-profile-fields").find(".ur-edit-profile-field"+e):p.closest(".ur-frontend-form").find(".ur-form-grid").find(".ur-frontend-field"+e)},missing_attachment_handler:function(e){var r=[];if(1<=e.length){e.each(function(){var e=m(this).attr("id");-1===m.inArray(e,r)&&r.push(e)});for(var t=0;t<r.length;t++){for(var a=m("#"+r[t]).val().split(","),i=a.length;0<=i;i--)m.isNumeric(a[i])||a.splice(i,1);m("#"+r[t]).val(a)}}}},e={init:function(){this.form_submit_event(),this.edit_profile_event()},form_submit_event:function(){m(".ur-frontend-form").each(function(){m(this).find("form.register").off("submit").on("submit",function(e){e.preventDefault();var n=m(this);if(m.extend(m.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields,confirmpassword:user_registration_params.message_confirm_password_fields}),0<n.find(".user-registration-password-strength").length){var e=n.find(".user-registration-password-strength").attr("data-current-strength"),r=n.find(".user-registration-password-strength").attr("data-min-strength");if(parseInt(e,0)<parseInt(r,0))return""!=n.find("#user_pass").val()&&(n.find("#user_pass_error").remove(),e='<label id="user_pass_error" class="user-registration-error" for="user_pass">'+u.password_strength_error+".</label>",n.find(".user-registration-password-hint").after(e),n.find("#user_pass").attr("aria-invalid",!0),n.find("#user_pass").trigger("focus")),!1}r=n.find(".ur-smart-phone-field");if("true"===r.attr("aria-invalid"))return(t=r.closest("p.form-row")).find("#"+r.data("id")+"-error").remove(),e='<label id="'+r.data("id")+'-error" class="user-registration-error" for="'+r.data("id")+'">'+user_registration_params.message_validate_phone_number+"</label>",t.append(e),t.find("#"+r.data("id")).attr("aria-invalid",!0),!0;e=n.find(".urfu-file-input");if(c.missing_attachment_handler(e),1===n.find(".uraf-profile-picture-upload").find(".user-registration-error").length&&(r=n.find(".uraf-profile-picture-upload").find(".uraf-profile-picture-input"),(t=n.find(".uraf-profile-picture-upload")).find("#"+r.attr("name")+"-error").remove(),t.find(".uraf-profile-picture-file-error").remove(),e='<label id="'+r.attr("name")+'-error" class="user-registration-error" for="'+r.attr("name")+'">'+user_registration_params.message_required_fields+"</label>",t.find("button.wp_uraf_profile_picture_upload").after(e)),n.valid()){n.find(".ur-submit-button").prop("disabled",!0);var r=0,t="0",e="",e=("hcaptcha"===user_registration_params.recaptcha_type?n.find('[name="h-captcha-response"]'):n.find('[name="g-recaptcha-response"]')).val();try{a=JSON.stringify(c.get_form_data(n.closest(".ur-frontend-form").attr("id")))}catch(i){a=""}1===m(this).closest("form").find('input[name="ur-user-form-id"]').length&&(r=m(this).closest("form").find('input[name="ur-user-form-id"]').val()),1===m(this).closest("form").find('input[name="ur_frontend_form_nonce"]').length&&(t=m(this).closest("form").find('input[name="ur_frontend_form_nonce"]').val());var a={action:"user_registration_user_form_submit",security:user_registration_params.user_registration_form_data_save,form_data:a,captchaResponse:e,form_id:r,ur_frontend_form_nonce:t},e={};if(m(document).trigger("user_registration_frontend_before_form_submit",[a,n,e]),"undefined"!=typeof e.message&&""!==e.message)return c.show_message("<p>"+e.message+"</p>","error",n,"1"),void n.find(".ur-submit-button").prop("disabled",!1);n.find(".ur-submit-button").find("span").addClass("ur-front-spinner"),m.ajax({url:user_registration_params.ajax_url,data:a,type:"POST","async":!0,complete:function(e){var r=[];if(r.status=!1,m(document).trigger("user_registration_frontend_before_ajax_complete_success_message",[e,r]),!r.status){n.find(".ur-submit-button").find("span").removeClass("ur-front-spinner");var t=n.find('input[name="ur-redirect-url"]').val(),a=m('<ul class=""/>'),r="error";try{var i=JSON.parse(e.responseText);"undefined"!=typeof i.success&&!0===i.success&&"undefined"!=typeof i.data.paypal_redirect&&(window.location=i.data.paypal_redirect),"message"===(r="undefined"!=typeof i.success&&!0===i.success?"message":r)?(n.find(".user-registration-password-hint").remove(),n.find(".user-registration-password-strength").remove(),"admin_approval"==i.data.form_login_option?a.append("<li>"+u.user_under_approval+"</li>"):"email_confirmation"==i.data.form_login_option||"admin_approval_after_email_confirmation"==i.data.form_login_option?a.append("<li>"+u.user_email_pending+"</li>"):"payment"==i.data.form_login_option?a.append("<li>"+i.data.message+"</li>"):a.append((i.data.message,u.user_successfully_saved)),"undefined"!=typeof i.data.auto_password_generation_success_message&&a.append("<li>"+i.data.auto_password_generation_success_message+"</li>"),n[0].reset(),jQuery("#billing_country").trigger("change"),jQuery("#shipping_country").trigger("change"),void 0!==(t="undefined"!=typeof i.data.role_based_redirect_url?i.data.role_based_redirect_url:t)&&""!==t?window.setTimeout(function(){window.location=t},1e3):"undefined"!=typeof i.data.auto_login&&i.data.auto_login&&location.reload()):"error"===r&&("object"==typeof i.data.message?m.each(i.data.message,function(e,r){a.append("<li>"+r+"</li>")}):a.append("<li>"+i.data.message+"</li>"))}catch(s){a.append("<li>"+s.message+"</li>")}i=JSON.parse(e.responseText).data.success_message_positon;c.show_message(a,r,n,i),"1"===i?m(window).scrollTop(n.find(".ur-button-container").offset().top):m(window).scrollTop(n.closest(".ur-frontend-form").offset().top),m(document).trigger("user_registration_frontend_after_ajax_complete",[e.responseText,r,n]),n.find(".ur-submit-button").prop("disabled",!1)}}})}})})},edit_profile_event:function(){m("form.user-registration-EditProfileForm").off("submit").on("submit",function(e){var s=m(this),r=(m.extend(m.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields}),s.find(".ur-smart-phone-field"));if("true"===r.attr("aria-invalid"))return(n=r.closest("p.form-row")).find("#"+r.data("id")+"-error").remove(),t='<label id="'+r.data("id")+'-error" class="user-registration-error" for="'+r.data("id")+'">'+user_registration_params.message_validate_phone_number+"</label>",n.append(t),n.find("#"+r.data("id")).attr("aria-invalid",!0),!0;if(1===s.find(".uraf-profile-picture-upload").find(".user-registration-error").length&&(t=s.find(".uraf-profile-picture-upload").find(".uraf-profile-picture-input"),(n=s.find(".uraf-profile-picture-upload")).find("#"+t.attr("name")+"-error").remove(),n.find(".uraf-profile-picture-file-error").remove(),r='<label id="'+t.attr("name")+'-error" class="user-registration-error" for="'+t.attr("name")+'">'+user_registration_params.message_required_fields+"</label>",n.find("button.wp_uraf_profile_picture_upload").after(r)),s.valid()){e.preventDefault(),s.find(".user-registration-submit-Button").prop("disabled",!0);var t=s.find(".urfu-file-input");c.missing_attachment_handler(t);try{var a=c.get_form_data(),i=m("#profile_pic_url").val();a.push({value:i,field_name:"user_registration_profile_pic_url"}),a=JSON.stringify(a)}catch(o){a=""}var n={action:"user_registration_update_profile_details",security:user_registration_params.user_registration_profile_details_save,form_data:a};s.find(".user-registration-submit-Button").find("span").addClass("ur-front-spinner"),m.ajax({type:"POST",url:user_registration_params.ajax_url,dataType:"JSON",data:n,complete:function(e){s.find("span.ur-front-spinner").removeClass("ur-front-spinner"),s.closest(".user-registration").find(".user-registration-error").remove(),s.closest(".user-registration").find(".user-registration-message").remove();var t=m('<ul class=""/>'),r="error";try{var a=JSON.parse(e.responseText);"undefined"!=typeof a.success&&!0===a.success&&(r="message"),"object"==typeof a.data.message?m.each(a.data.message,function(e,r){t.append("<li>"+r+"</li>")}):t.append("<li>"+a.data.message+"</li>")}catch(i){t.append("<li>"+i.message+"</li>")}c.show_message(t,r,s,"0"),s.find(".user-registration-submit-Button").prop("disabled",!1),m(window).scrollTop(m(".user-registration").position())}})}})}};c.init(),e.init()})},m(function(){m(".ur-submit-button").on("click",function(){m(this).closest("form.register").ur_form_submission()}),m(".user-registration-submit-Button").on("click",function(){m(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")&&"yes"===user_registration_params.ajax_submission_on_edit_profile&&m("form.user-registration-EditProfileForm").ur_form_submission()});var i={};m(document.body).on("click","#load_flatpickr",function(){var e,r,a=m(this).data("id"),t=i[a];t||(e=m(this).closest(".ur-field-item").find("#formated_date").val(),r=(0<m(".ur-frontend-form").length?m(".ur-frontend-form #"+a):m(".woocommerce-MyAccount-content #"+a)).attr("type","text").val(e),m(this).attr("data-date-format",r.data("date-format")),m(this).attr("data-mode",r.data("mode")),m(this).attr("data-min-date",r.data("min-date")),m(this).attr("data-max-date",r.data("max-date")),m(this).attr("data-default-date",e),t=m(this).flatpickr({disableMobile:!0,onChange:function(e,r,t){m("#"+a).val(r)}}),i[a]=t),t&&t.open()}),m(".ur-frontend-form").each(function(){m(this).find("form.register").on("focusout","#user_pass, #password_1",function(){$this=m(this);var e,r,t=m(this).attr("name"),a=m(this).data("id"),i=$this.closest("form").attr("data-enable-strength-password");"yes"!==i&&"1"!==i||(e=(i=$this.closest("form")).attr("data-minimum-password-strength"),r=[],(r="function"==typeof wp.passwordStrength.userInputDisallowedList?wp.passwordStrength.userInputDisallowedList():wp.passwordStrength.userInputBlacklist()).push(i.find('input[data-id="user_email"]').val()),r.push(i.find('input[data-id="user_login"]').val()),wp.passwordStrength.meter($this.val(),r)<e&&""!==$this.val()&&(i.find("#"+a+"_error").remove(),r='<label id="'+a+'_error" class="user-registration-error" for="'+t+'">'+u.password_strength_error+".</label>",i.find(".user-registration-password-hint").after(r)))})})}),m(function(){0<m(".user-registration-EditProfileForm.edit-profile .field-country").length&&m(".field-country").each(function(){var e=m(this).find(".ur-data-holder").data("option-value"),r=m(this).find(".ur-data-holder").data("option-html"),t=m(this).find("select");e&&r&&(0===t.find('option[value="'+e+'"]').length&&t.append("<option class='ur-remove' selected='selected' value='"+e+"'>"+r+"</option>"),m(this).on("click",function(){m(this).find(".ur-remove").remove()}))})})};m(function(){m(".input-checkbox").each(function(){var e=m(this).attr("data-id");m('input[name="'+e+'[]"]:checked').length==m('[data-id = "'+e+'" ]').length&&m('[data-check = "'+e+'" ]').prop("checked",!0)}),m('input[type="checkbox"]#checkall').on("click",function(){var e=m(this).attr("data-check");m('[data-id = "'+e+'" ]').prop("checked",m(this).prop("checked"))}),m(".input-checkbox").on("change",function(){var e=m(this).attr("data-id");!1===m(this).prop("checked")&&m('[data-check = "'+e+'" ]').prop("checked",!1),m('input[name="'+e+'[]"]:checked').length==m('[data-id = "'+e+'" ]').length&&m('[data-check = "'+e+'" ]').prop("checked",!0)})}),e(),m(window).on("load",function(){e()})}(jQuery),function(a){a(document).on("click",".password_preview",function(e){e.preventDefault();var r=user_registration_params.ursL10n,e=a(this).hasClass("dashicons-hidden")?"show":"hide",t=a(this).closest(".user-registration-form-row").find('input[name="password"]');if(0<(t=0===(t=0===(t=0===(t=0===(t=0===t.length?a(this).closest(".field-user_pass").find('input[name="user_pass"]'):t).length?a(this).closest(".field-user_confirm_password").find('input[name="user_confirm_password"]'):t).length?a(this).closest(".user-registration-form-row").find('input[name="password_current"]'):t).length?a(this).closest(".user-registration-form-row").find('input[name="password_1"]'):t).length?a(this).closest(".user-registration-form-row").find('input[name="password_2"]'):t).length)switch(e){case"show":t.attr("type","text"),a(this).removeClass("dashicons-hidden").addClass("dashicons-visibility"),a(this).attr("title",r.hide_password_title);break;case"hide":t.attr("type","password"),a(this).removeClass("dashicons-visibility").addClass("dashicons-hidden"),a(this).attr("title",r.show_password_title)}})}(jQuery);
includes/admin/class-ur-admin-settings.php CHANGED
@@ -727,11 +727,11 @@ class UR_Admin_Settings {
727
  $option_name = sanitize_text_field( current( array_keys( $option_name_array ) ) );
728
 
729
  $setting_name = key( $option_name_array[ $option_name ] );
730
- $raw_value = isset( $_POST[ $option_name ][ $setting_name ] ) ? sanitize_text_field( wp_unslash( $_POST[ $option_name ][ $setting_name ] ) ) : null; // phpcs:ignore WordPress.Security.NonceVerification
731
  } else {
732
  $option_name = sanitize_text_field( $option['id'] );
733
  $setting_name = '';
734
- $raw_value = isset( $_POST[ $option['id'] ] ) ? sanitize_text_field( wp_unslash( $_POST[ $option['id'] ] ) ) : null; // phpcs:ignore WordPress.Security.NonceVerification
735
  }
736
 
737
  // Format the value based on option type.
727
  $option_name = sanitize_text_field( current( array_keys( $option_name_array ) ) );
728
 
729
  $setting_name = key( $option_name_array[ $option_name ] );
730
+ $raw_value = isset( $_POST[ $option_name ][ $setting_name ] ) ? wp_unslash( $_POST[ $option_name ][ $setting_name ] ) : null; // phpcs:ignore WordPress.Security.NonceVerification, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
731
  } else {
732
  $option_name = sanitize_text_field( $option['id'] );
733
  $setting_name = '';
734
+ $raw_value = isset( $_POST[ $option['id'] ] ) ? wp_unslash( $_POST[ $option['id'] ] ) : null; // phpcs:ignore WordPress.Security.NonceVerification, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
735
  }
736
 
737
  // Format the value based on option type.
includes/class-ur-ajax.php CHANGED
@@ -282,7 +282,7 @@ class UR_AJAX {
282
  }
283
  break;
284
  default:
285
- $single_field[ $key ] = isset( $single_field[ $key ] ) ? sanitize_text_field( ( $single_field[ $key ] ) ) : '';
286
  break;
287
  }
288
 
@@ -781,7 +781,7 @@ class UR_AJAX {
781
  update_post_meta( $form_id, 'user_registration_form_row_ids', $form_row_ids );
782
  }
783
 
784
- do_action( 'user_registration_after_form_settings_save', wp_unslash( sanitize_key( $_POST['data'] ) ) );
785
 
786
  wp_send_json_success(
787
  array(
282
  }
283
  break;
284
  default:
285
+ $single_field[ $key ] = isset( $single_field[ $key ] ) ? $single_field[ $key ] : '';
286
  break;
287
  }
288
 
781
  update_post_meta( $form_id, 'user_registration_form_row_ids', $form_row_ids );
782
  }
783
 
784
+ do_action( 'user_registration_after_form_settings_save', wp_unslash( $_POST['data'] ) ); //phpcs:ignore
785
 
786
  wp_send_json_success(
787
  array(
includes/class-ur-form-handler.php CHANGED
@@ -168,12 +168,12 @@ class UR_Form_Handler {
168
  break;
169
 
170
  default:
171
- $_POST[ $key ] = isset( $_POST[ $key ] ) ? sanitize_text_field( wp_unslash( $_POST[ $key ] ) ) : '';
172
  break;
173
  }
174
 
175
  // Hook to allow modification of value.
176
- $_POST[ $key ] = apply_filters( 'user_registration_process_myaccount_field_' . $key, sanitize_text_field( wp_unslash( $_POST[ $key ] ) ) );
177
 
178
  $disabled = false;
179
  if ( isset( $field['custom_attributes'] ) && isset( $field['custom_attributes']['readonly'] ) && isset( $field['custom_attributes']['disabled'] ) ) {
@@ -181,7 +181,7 @@ class UR_Form_Handler {
181
  $disabled = true;
182
  }
183
  }
184
- error_log( print_r( $_POST, true ) );
185
  // Validation: Required fields.
186
  if ( ! empty( $field['required'] ) && empty( $_POST[ $key ] ) && ! $disabled ) {
187
  /* translators: %s - Field Label */
@@ -217,7 +217,7 @@ class UR_Form_Handler {
217
  }
218
  }
219
  // Action to add extra validation to edit profile fields.
220
- do_action( 'user_registration_validate_' . $key, sanitize_text_field( wp_unslash( $_POST[ $key ] ) ) );
221
 
222
  }
223
 
@@ -233,7 +233,7 @@ class UR_Form_Handler {
233
  if ( 'display_name' === $new_key ) {
234
  $user_data['display_name'] = sanitize_text_field( wp_unslash( $_POST[ $key ] ) );
235
  } else {
236
- $user_data[ $new_key ] = sanitize_text_field( wp_unslash( $_POST[ $key ] ) );
237
  }
238
  } else {
239
  $update_key = $key;
@@ -244,7 +244,7 @@ class UR_Form_Handler {
244
  $disabled = isset( $field['custom_attributes']['disabled'] ) ? $field['custom_attributes']['disabled'] : '';
245
 
246
  if ( 'disabled' !== $disabled ) {
247
- update_user_meta( $user_id, $update_key, sanitize_text_field( wp_unslash( $_POST[ $key ] ) ) );
248
  }
249
  }
250
  }
168
  break;
169
 
170
  default:
171
+ $_POST[ $key ] = isset( $_POST[ $key ] ) ? wp_unslash( $_POST[ $key ] ) : ''; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
172
  break;
173
  }
174
 
175
  // Hook to allow modification of value.
176
+ $_POST[ $key ] = apply_filters( 'user_registration_process_myaccount_field_' . $key, wp_unslash( $_POST[ $key ] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
177
 
178
  $disabled = false;
179
  if ( isset( $field['custom_attributes'] ) && isset( $field['custom_attributes']['readonly'] ) && isset( $field['custom_attributes']['disabled'] ) ) {
181
  $disabled = true;
182
  }
183
  }
184
+
185
  // Validation: Required fields.
186
  if ( ! empty( $field['required'] ) && empty( $_POST[ $key ] ) && ! $disabled ) {
187
  /* translators: %s - Field Label */
217
  }
218
  }
219
  // Action to add extra validation to edit profile fields.
220
+ do_action( 'user_registration_validate_' . $key, wp_unslash( $_POST[ $key ] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
221
 
222
  }
223
 
233
  if ( 'display_name' === $new_key ) {
234
  $user_data['display_name'] = sanitize_text_field( wp_unslash( $_POST[ $key ] ) );
235
  } else {
236
+ $user_data[ $new_key ] = wp_unslash( $_POST[ $key ] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
237
  }
238
  } else {
239
  $update_key = $key;
244
  $disabled = isset( $field['custom_attributes']['disabled'] ) ? $field['custom_attributes']['disabled'] : '';
245
 
246
  if ( 'disabled' !== $disabled ) {
247
+ update_user_meta( $user_id, $update_key, wp_unslash( $_POST[ $key ] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
248
  }
249
  }
250
  }
languages/user-registration.pot CHANGED
@@ -2,16 +2,16 @@
2
  # This file is distributed under the same license as the User Registration plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: User Registration 2.1.4.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/user-registration\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-03-02T05:24:55+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
- "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: user-registration\n"
16
 
17
  #. Plugin Name of the plugin
@@ -38,6 +38,7 @@ msgid "https://wpeverest.com"
38
  msgstr ""
39
 
40
  #: includes/abstracts/abstract-ur-form-field.php:644
 
41
  msgid "General Settings"
42
  msgstr ""
43
 
@@ -783,6 +784,7 @@ msgstr ""
783
  #: includes/admin/settings/class-ur-settings-general.php:27
784
  #: includes/admin/settings/class-ur-settings-general.php:69
785
  #: includes/admin/settings/class-ur-settings-general.php:380
 
786
  msgid "General"
787
  msgstr ""
788
 
@@ -1372,6 +1374,7 @@ msgstr ""
1372
  #: includes/admin/settings/class-ur-settings-general.php:553
1373
  #: templates/form-login-registration.php:31
1374
  #: templates/myaccount/form-login.php:42
 
1375
  msgid "Login"
1376
  msgstr ""
1377
 
@@ -1497,6 +1500,8 @@ msgstr ""
1497
  msgid "Site Key (reCaptcha v2)"
1498
  msgstr ""
1499
 
 
 
1500
  #. translators: %1$s - Google reCAPTCHA docs url
1501
  #: includes/admin/settings/class-ur-settings-integration.php:69
1502
  #: includes/admin/settings/class-ur-settings-integration.php:94
@@ -1508,6 +1513,8 @@ msgstr ""
1508
  msgid "Secret Key ( reCaptcha v2)"
1509
  msgstr ""
1510
 
 
 
1511
  #. translators: %1$s - Google reCAPTCHA docs url
1512
  #: includes/admin/settings/class-ur-settings-integration.php:82
1513
  #: includes/admin/settings/class-ur-settings-integration.php:107
@@ -2372,6 +2379,7 @@ msgstr ""
2372
  msgid "Form"
2373
  msgstr ""
2374
 
 
2375
  #. translators: %s - Field Label
2376
  #: includes/class-ur-form-handler.php:188
2377
  #: includes/frontend/class-ur-frontend-form-handler.php:473
@@ -2604,6 +2612,12 @@ msgstr ""
2604
  msgid "The provided license key could not be found. Please <a href=\"%s\" target=\"_blank\">contact support</a> for more information."
2605
  msgstr ""
2606
 
 
 
 
 
 
 
2607
  #. translators: %1$s: Activation error message
2608
  #: includes/class-ur-plugin-updater.php:366
2609
  #: includes/functions-ur-core.php:2366
@@ -2680,6 +2694,7 @@ msgid "Registrations"
2680
  msgstr ""
2681
 
2682
  #: includes/class-ur-post-types.php:49
 
2683
  msgid "Registration"
2684
  msgstr ""
2685
 
@@ -2732,6 +2747,7 @@ msgstr ""
2732
  msgid "Edit Form"
2733
  msgstr ""
2734
 
 
2735
  #. translators: %s - Form name.
2736
  #: includes/class-ur-preview.php:115
2737
  #: includes/class-ur-preview.php:162
@@ -4753,3 +4769,99 @@ msgstr ""
4753
  #: templates/myaccount/lost-password-confirmation.php:27
4754
  msgid "A password reset email has been sent to the email address on file for your account, but may take several minutes to show up in your inbox. Please wait at least 10 minutes before attempting another reset."
4755
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  # This file is distributed under the same license as the User Registration plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: User Registration 2.1.4.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/user-registration\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-03-04T08:36:28+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
+ "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: user-registration\n"
16
 
17
  #. Plugin Name of the plugin
38
  msgstr ""
39
 
40
  #: includes/abstracts/abstract-ur-form-field.php:644
41
+ #: build/main.js:2098
42
  msgid "General Settings"
43
  msgstr ""
44
 
784
  #: includes/admin/settings/class-ur-settings-general.php:27
785
  #: includes/admin/settings/class-ur-settings-general.php:69
786
  #: includes/admin/settings/class-ur-settings-general.php:380
787
+ #: build/main.js:2098
788
  msgid "General"
789
  msgstr ""
790
 
1374
  #: includes/admin/settings/class-ur-settings-general.php:553
1375
  #: templates/form-login-registration.php:31
1376
  #: templates/myaccount/form-login.php:42
1377
+ #: build/main.js:2098
1378
  msgid "Login"
1379
  msgstr ""
1380
 
1500
  msgid "Site Key (reCaptcha v2)"
1501
  msgstr ""
1502
 
1503
+ #. translators: %1$s - Google reCAPTCHA docs url
1504
+ #. translators: %1$s - Google reCAPTCHA docs url
1505
  #. translators: %1$s - Google reCAPTCHA docs url
1506
  #: includes/admin/settings/class-ur-settings-integration.php:69
1507
  #: includes/admin/settings/class-ur-settings-integration.php:94
1513
  msgid "Secret Key ( reCaptcha v2)"
1514
  msgstr ""
1515
 
1516
+ #. translators: %1$s - Google reCAPTCHA docs url
1517
+ #. translators: %1$s - Google reCAPTCHA docs url
1518
  #. translators: %1$s - Google reCAPTCHA docs url
1519
  #: includes/admin/settings/class-ur-settings-integration.php:82
1520
  #: includes/admin/settings/class-ur-settings-integration.php:107
2379
  msgid "Form"
2380
  msgstr ""
2381
 
2382
+ #. translators: %s - Field Label
2383
  #. translators: %s - Field Label
2384
  #: includes/class-ur-form-handler.php:188
2385
  #: includes/frontend/class-ur-frontend-form-handler.php:473
2612
  msgid "The provided license key could not be found. Please <a href=\"%s\" target=\"_blank\">contact support</a> for more information."
2613
  msgstr ""
2614
 
2615
+ #. translators: %1$s: Activation error message
2616
+ #. translators: %1$s: Activation error message
2617
+ #. translators: %1$s: Activation error message
2618
+ #. translators: %1$s: Activation error message
2619
+ #. translators: %1$s: Activation error message
2620
+ #. translators: %1$s: Activation error message
2621
  #. translators: %1$s: Activation error message
2622
  #: includes/class-ur-plugin-updater.php:366
2623
  #: includes/functions-ur-core.php:2366
2694
  msgstr ""
2695
 
2696
  #: includes/class-ur-post-types.php:49
2697
+ #: build/main.js:2098
2698
  msgid "Registration"
2699
  msgstr ""
2700
 
2747
  msgid "Edit Form"
2748
  msgstr ""
2749
 
2750
+ #. translators: %s - Form name.
2751
  #. translators: %s - Form name.
2752
  #: includes/class-ur-preview.php:115
2753
  #: includes/class-ur-preview.php:162
4769
  #: templates/myaccount/lost-password-confirmation.php:27
4770
  msgid "A password reset email has been sent to the email address on file for your account, but may take several minutes to show up in your inbox. Please wait at least 10 minutes before attempting another reset."
4771
  msgstr ""
4772
+
4773
+ #: build/main.js:2098
4774
+ msgid "Install Pages"
4775
+ msgstr ""
4776
+
4777
+ #: build/main.js:2098
4778
+ msgid "The following pages will be installed automatically."
4779
+ msgstr ""
4780
+
4781
+ #: build/main.js:2098
4782
+ msgid "Customize your general settings as per your preference."
4783
+ msgstr ""
4784
+
4785
+ #: build/main.js:2098
4786
+ msgid "Registration Settings"
4787
+ msgstr ""
4788
+
4789
+ #: build/main.js:2098
4790
+ msgid "Customize your registration settings as per your preference."
4791
+ msgstr ""
4792
+
4793
+ #: build/main.js:2098
4794
+ msgid "Login Settings"
4795
+ msgstr ""
4796
+
4797
+ #: build/main.js:2098
4798
+ msgid "Customize your login settings as per your preference."
4799
+ msgstr ""
4800
+
4801
+ #: build/main.js:2098
4802
+ msgid "My Account"
4803
+ msgstr ""
4804
+
4805
+ #: build/main.js:2098
4806
+ msgid "My Account Settings"
4807
+ msgstr ""
4808
+
4809
+ #: build/main.js:2098
4810
+ msgid "Customize your my account page settings as per your preference."
4811
+ msgstr ""
4812
+
4813
+ #: build/main.js:2098
4814
+ msgid "Final Step"
4815
+ msgstr ""
4816
+
4817
+ #: build/main.js:2098
4818
+ msgid "Go To Dashboard"
4819
+ msgstr ""
4820
+
4821
+ #: build/main.js:2098
4822
+ msgid "Back"
4823
+ msgstr ""
4824
+
4825
+ #: build/main.js:2098
4826
+ msgid "Edit Default Form"
4827
+ msgstr ""
4828
+
4829
+ #: build/main.js:2098
4830
+ msgid "Create New Form"
4831
+ msgstr ""
4832
+
4833
+ #: build/main.js:2098
4834
+ msgid "Skip"
4835
+ msgstr ""
4836
+
4837
+ #: build/main.js:2098
4838
+ msgid "Install & Proceed"
4839
+ msgstr ""
4840
+
4841
+ #: build/main.js:2098
4842
+ msgid "Next"
4843
+ msgstr ""
4844
+
4845
+ #: build/main.js:2142
4846
+ msgid "Registration Page"
4847
+ msgstr ""
4848
+
4849
+ #: build/main.js:2142
4850
+ msgid "Installing..."
4851
+ msgstr ""
4852
+
4853
+ #: build/main.js:2142
4854
+ msgid "Installed"
4855
+ msgstr ""
4856
+
4857
+ #: build/main.js:2142
4858
+ msgid "Default Registration Form"
4859
+ msgstr ""
4860
+
4861
+ #: build/main.js:2153
4862
+ msgid "Congratulations!! You are all set up."
4863
+ msgstr ""
4864
+
4865
+ #: build/main.js:2153
4866
+ msgid "Vivamus magna justo, lacinia eget consectetur sed, convallis at tellus. Proin eget tortor risus. Quisque velit nisi, pretium ut lacinia in, elementum id enim."
4867
+ msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: user registration, registration, user profile, registration form, login fo
4
  Requires at least: 4.0
5
  Requires PHP: 5.3
6
  Tested up to: 5.9.1
7
- Stable tag: 2.1.4.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -276,6 +276,13 @@ Yes, the plugin has a shortcode for the login form.
276
  16. User Account Page - Vertical Layout
277
 
278
  == Changelog ==
 
 
 
 
 
 
 
279
  = 2.1.4.1 - 02/03/2022
280
  * Fix - ReCaptcha backward compatibility issue.
281
 
4
  Requires at least: 4.0
5
  Requires PHP: 5.3
6
  Tested up to: 5.9.1
7
+ Stable tag: 2.1.4.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
276
  16. User Account Page - Vertical Layout
277
 
278
  == Changelog ==
279
+ = 2.1.4.2 - 04/03/2022
280
+ * Fix - Conditional assign role not working.
281
+ * Fix - Inline email content on save.
282
+ * Fix - Conditional logic not working.
283
+ * Fix - Multi select2 value not being saved in edit profile.
284
+ * Fix - Multiple profile updated email to admin.
285
+
286
  = 2.1.4.1 - 02/03/2022
287
  * Fix - ReCaptcha backward compatibility issue.
288
 
templates/form-registration.php CHANGED
@@ -101,7 +101,7 @@ do_action( 'user_registration_before_registration_form', $form_id );
101
  }
102
  }
103
  ?>
104
- <div <?php echo esc_attr( $cl_props ); ?> data-field-id="<?php echo esc_attr( $field_id ); ?>" class="ur-field-item field-<?php echo esc_attr( $single_item->field_key ); ?> <?php echo esc_attr( ! empty( $single_item->advance_setting->custom_class ) ? $single_item->advance_setting->custom_class : '' ); ?>">
105
  <?php
106
  $frontend->user_registration_frontend_form( $single_item, $form_id );
107
  $is_field_exists = true;
101
  }
102
  }
103
  ?>
104
+ <div <?php echo $cl_props; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> data-field-id="<?php echo esc_attr( $field_id ); ?>" class="ur-field-item field-<?php echo esc_attr( $single_item->field_key ); ?> <?php echo esc_attr( ! empty( $single_item->advance_setting->custom_class ) ? $single_item->advance_setting->custom_class : '' ); ?>">
105
  <?php
106
  $frontend->user_registration_frontend_form( $single_item, $form_id );
107
  $is_field_exists = true;
user-registration.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: User Registration
4
  * Plugin URI: https://wpeverest.com/plugins/user-registration
5
  * Description: Drag and Drop user registration form and login form builder.
6
- * Version: 2.1.4.1
7
  * Author: WPEverest
8
  * Author URI: https://wpeverest.com
9
  * Text Domain: user-registration
@@ -31,7 +31,7 @@ if ( ! class_exists( 'UserRegistration' ) ) :
31
  *
32
  * @var string
33
  */
34
- public $version = '2.1.4.1';
35
 
36
  /**
37
  * Session instance.
3
  * Plugin Name: User Registration
4
  * Plugin URI: https://wpeverest.com/plugins/user-registration
5
  * Description: Drag and Drop user registration form and login form builder.
6
+ * Version: 2.1.4.2
7
  * Author: WPEverest
8
  * Author URI: https://wpeverest.com
9
  * Text Domain: user-registration
31
  *
32
  * @var string
33
  */
34
+ public $version = '2.1.4.2';
35
 
36
  /**
37
  * Session instance.