Version Description
- 12/02/2021
- Fix - Login button not working on pages with both registration and login forms.
Download this release
Release Info
Developer | wpeverestdev |
Plugin | User Registration – Custom Registration Form, Login Form And User Profile For WordPress |
Version | 1.9.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.9.4 to 1.9.4.1
assets/js/frontend/user-registration-form-validator.js
CHANGED
@@ -3,6 +3,11 @@
|
|
3 |
var user_registration_form_selector;
|
4 |
|
5 |
user_registration_form_selector = $(".ur-frontend-form form");
|
|
|
|
|
|
|
|
|
|
|
6 |
var field_selector = "";
|
7 |
|
8 |
if (user_registration_form_selector.hasClass("edit-profile")) {
|
3 |
var user_registration_form_selector;
|
4 |
|
5 |
user_registration_form_selector = $(".ur-frontend-form form");
|
6 |
+
|
7 |
+
if (user_registration_form_selector.hasClass("login")) {
|
8 |
+
return;
|
9 |
+
}
|
10 |
+
|
11 |
var field_selector = "";
|
12 |
|
13 |
if (user_registration_form_selector.hasClass("edit-profile")) {
|
assets/js/frontend/user-registration-form-validator.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var a
|
1 |
+
!function(e){var a;if(!(a=e(".ur-frontend-form form")).hasClass("login")){var i="";a.hasClass("edit-profile")&&(i="user_registration_");var s={$user_registration:a,init:function(){this.add_validation_methods(),this.load_validation(),this.init_inputMask(),this.init_tiptip(),this.$user_registration.on("input validate change",".input-text, select, input:checkbox input:radio",this.validate_field)},init_inputMask:function(){"undefined"!=typeof e.fn.inputmask&&e(".ur-masked-input").inputmask()},init_tiptip:function(){if("undefined"!=typeof tipTip){e(".user-registration-help-tip").tipTip({attribute:"title",fadeIn:50,fadeOut:50,delay:200})}},add_validation_methods:function(){e.validator.methods.email=function(e,a){var i=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);return this.optional(a)||i.test(e)},e.validator.addMethod("lengthValidator",function(e,a,i){return e.length<=i},e.validator.format("Please enter less than {0} characters.")),e.validator.addMethod("checkLimit",function(a,i,s){var r=parseInt(s||0,10),t="";if(e(i).closest(".field-checkbox").length){t=e(i).closest("ul").find('input[type="checkbox"]:checked')}else e(i).closest(".field-multi_select2").length&&(t=e(i).val());return 0===r||t.length<=r},e.validator.format("Please select no more than {0} options."))},load_validation:function(){if("undefined"==typeof e.fn.validate)return!1;var a=this;a.$user_registration.each(function(){var i=e(this),s=a.custom_validation(i);a.custom_validation_messages(),i.validate({errorClass:"user-registration-error",validClass:"user-registration-valid",rules:s.rules,messages:s.messages,focusInvalid:!1,invalidHandler:function(a,i){i.numberOfInvalids()&&e(window).scrollTop(e(i.errorList[0].element).offset().top)},errorPlacement:function(e,a){if(a.is("#password_2"))a.parent().after(e);else if("radio"===a.attr("type")||"checkbox"===a.attr("type")||"password"===a.attr("type"))a.parent().parent().parent().append(e);else if(a.is("select")&&a.attr("class").match(/date-month|date-day|date-year/))0===a.parent().find("label.user-registration-error:visible").length&&a.parent().find("select:last").after(e);else if(a.hasClass("ur-smart-phone-field")){var i=a.closest("p.form-row");i.find("#"+a.data("id")+"-error").remove(),i.append(e)}else"number"===a.attr("type")&&a.hasClass("ur-range-input")?e.insertAfter(a.closest(".ur-range-row").find(".ur-range-number")):a.hasClass("urfu-file-input")||a.closest(".field-multi_select2").length?e.insertAfter(a.parent().parent()):e.insertAfter(a)},highlight:function(a,i,s){var r=e(a);r.closest(".form-row"),r.attr("name")},unhighlight:function(a,i,s){var r=e(a),t=r.closest(".form-row"),u=r.attr("name");"radio"===r.attr("type")||"checkbox"===r.attr("type")?t.find("input[name='"+u+"']").addClass(s).removeClass(i):r.addClass(s).removeClass(i),t.removeClass("user-registration-has-error")},submitHandler:function(a){return!!(e(a).hasClass("edit-password")||e(a).hasClass("edit-profile")&&"no"===user_registration_params.ajax_submission_on_edit_profile)}})})},validate_field:function(a){e.extend(e.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});var i=e(this),s=i.closest(".form-row"),r=!0,t=s.is(".validate-required"),u=s.is(".validate-email"),n=a.type;if("input"===n&&s.removeClass("user-registration-invalid user-registration-invalid-required-field user-registration-invalid-email user-registration-validated"),"validate"===n||"change"===n){if(t&&("checkbox"!==i.attr("type")||i.is(":checked")?""===i.val()&&(s.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-required-field"),r=!1):(s.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-required-field"),r=!1)),u&&i.val()){new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(i.val())||(s.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-email"),r=!1)}r&&s.removeClass("user-registration-invalid user-registration-invalid-required-field user-registration-invalid-email").addClass("user-registration-validated")}},custom_validation:function(a){var s={},r={};if(a.find("#user_confirm_email").length){var t=a.closest(".ur-frontend-form").attr("id");s.user_confirm_email={equalTo:"#"+t+" #user_email"},r.user_confirm_email=user_registration_params.message_confirm_email_fields}if(a.hasClass("edit-password"))s.password_2={equalTo:"#password_1"},r.password_2=user_registration_params.message_confirm_password_fields;else if(a.hasClass("register")&&a.find("#user_confirm_password").length){t=a.closest(".ur-frontend-form").attr("id");s.user_confirm_password={equalTo:"#"+t+" #user_pass"},r.user_confirm_password=user_registration_params.message_confirm_password_fields}var u=a.find("#user_login");u.length&&(s.user_login={lengthValidator:u.data("username-length")});var n=a.find(".field-checkbox"),F=a.find(".field-multi_select2");return n.length&&n.each(function(){s[i+e(this).data("field-id")+"[]"]={checkLimit:e(this).find("ul").data("choice-limit")?e(this).find("ul").data("choice-limit"):0}}),F.length&&F.each(function(){s[i+e(this).data("field-id")+"[]"]={checkLimit:e(this).find("select").data("choice-limit")?e(this).find("select").data("choice-limit"):0}}),{rules:s,messages:r}},custom_validation_messages:function(){e.validator.messages.required=user_registration_params.message_required_fields,e.validator.messages.url=user_registration_params.message_url_fields,e.validator.messages.email=user_registration_params.message_email_fields,e.validator.messages.number=user_registration_params.message_number_fields,e.validator.messages.confirmpassword=user_registration_params.message_confirm_password_fields,e.validator.messages.max=function(e,a){return user_registration_params.message_confirm_number_field_max.replace("%qty%",a.max)},e.validator.messages.min=function(e,a){return user_registration_params.message_confirm_number_field_min.replace("%qty%",a.min)},e.validator.messages.step=function(e,a){return user_registration_params.message_confirm_number_field_step.replace("%qty%",a.step)}}};e(window).on("load",function(){s.init()})}}(jQuery);
|
languages/user-registration.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the User Registration plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: User Registration 1.9.4\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: 2021-02-
|
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"
|
2 |
# This file is distributed under the same license as the User Registration plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: User Registration 1.9.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: 2021-02-12T17:41:54+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"
|
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.6.1
|
7 |
-
Stable tag: 1.9.4
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -153,6 +153,9 @@ Yes, the plugin has a shortcode for the login form.
|
|
153 |
|
154 |
== Changelog ==
|
155 |
|
|
|
|
|
|
|
156 |
= 1.9.4 - 12/02/2021
|
157 |
* Enhance - Limit username length.
|
158 |
* Enhance - Limit Choice in checkbox field.
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 5.3
|
6 |
Tested up to: 5.6.1
|
7 |
+
Stable tag: 1.9.4.1
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
153 |
|
154 |
== Changelog ==
|
155 |
|
156 |
+
= 1.9.4.1 - 12/02/2021
|
157 |
+
* Fix - Login button not working on pages with both registration and login forms.
|
158 |
+
|
159 |
= 1.9.4 - 12/02/2021
|
160 |
* Enhance - Limit username length.
|
161 |
* Enhance - Limit Choice in checkbox field.
|
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: 1.9.4
|
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 = '1.9.4';
|
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: 1.9.4.1
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Text Domain: user-registration
|
31 |
*
|
32 |
* @var string
|
33 |
*/
|
34 |
+
public $version = '1.9.4.1';
|
35 |
|
36 |
/**
|
37 |
* Session instance.
|