Version Description
Download this release
Release Info
Developer | nsinelnikov |
Plugin | Ultimate Member – User Profile & Membership Plugin |
Version | 2.1.18 |
Comparing to | |
See all releases |
Code changes from version 2.1.17 to 2.1.18
- includes/core/class-validation.php +3 -2
- readme.txt +7 -1
- ultimate-member.php +1 -1
includes/core/class-validation.php
CHANGED
@@ -19,6 +19,7 @@ if ( ! class_exists( 'um\core\Validation' ) ) {
|
|
19 |
*/
|
20 |
function __construct() {
|
21 |
$this->regex_safe = '/\A[\w\-\.]+\z/';
|
|
|
22 |
$this->regex_phone_number = '/\A[\d\-\.\+\(\)\ ]+\z/';
|
23 |
|
24 |
|
@@ -214,12 +215,12 @@ if ( ! class_exists( 'um\core\Validation' ) ) {
|
|
214 |
* }
|
215 |
* ?>
|
216 |
*/
|
217 |
-
$regex_safe_username = apply_filters('um_validation_safe_username_regex'
|
218 |
|
219 |
if ( is_email( $string ) ) {
|
220 |
return true;
|
221 |
}
|
222 |
-
if ( ! is_email( $string ) &&
|
223 |
return false;
|
224 |
}
|
225 |
return true;
|
19 |
*/
|
20 |
function __construct() {
|
21 |
$this->regex_safe = '/\A[\w\-\.]+\z/';
|
22 |
+
$this->regex_username_safe = '|[^a-z0-9 _.\-@]|i';
|
23 |
$this->regex_phone_number = '/\A[\d\-\.\+\(\)\ ]+\z/';
|
24 |
|
25 |
|
215 |
* }
|
216 |
* ?>
|
217 |
*/
|
218 |
+
$regex_safe_username = apply_filters( 'um_validation_safe_username_regex', $this->regex_username_safe );
|
219 |
|
220 |
if ( is_email( $string ) ) {
|
221 |
return true;
|
222 |
}
|
223 |
+
if ( ! is_email( $string ) && preg_match( $regex_safe_username, $string ) ) {
|
224 |
return false;
|
225 |
}
|
226 |
return true;
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: community, member, membership, user-profile, user-registration
|
|
7 |
Requires PHP: 5.6
|
8 |
Requires at least: 5.0
|
9 |
Tested up to: 5.7
|
10 |
-
Stable tag: 2.1.
|
11 |
License: GNU Version 2 or Any Later Version
|
12 |
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
13 |
|
@@ -155,6 +155,12 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
|
|
155 |
* To learn more about version 2.1 please see this [docs](https://docs.ultimatemember.com/article/1512-upgrade-2-1-0)
|
156 |
* UM2.1+ is a significant update to the Member Directories' code base from 2.0.x. Please make sure you take a full-site backup with restore point before updating the plugin
|
157 |
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
= 2.1.17: April 14, 2021 =
|
159 |
|
160 |
* Enhancements:
|
7 |
Requires PHP: 5.6
|
8 |
Requires at least: 5.0
|
9 |
Tested up to: 5.7
|
10 |
+
Stable tag: 2.1.18
|
11 |
License: GNU Version 2 or Any Later Version
|
12 |
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
13 |
|
155 |
* To learn more about version 2.1 please see this [docs](https://docs.ultimatemember.com/article/1512-upgrade-2-1-0)
|
156 |
* UM2.1+ is a significant update to the Member Directories' code base from 2.0.x. Please make sure you take a full-site backup with restore point before updating the plugin
|
157 |
|
158 |
+
= 2.1.18: April 19, 2021 =
|
159 |
+
|
160 |
+
* Bugfixes:
|
161 |
+
- Fixed: Endless JS loop when filtering on Member Directory page
|
162 |
+
- Fixed: Regular expression for registration form and username field (added ability to use spaces) (#812)
|
163 |
+
|
164 |
= 2.1.17: April 14, 2021 =
|
165 |
|
166 |
* Enhancements:
|
ultimate-member.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ultimate Member
|
4 |
Plugin URI: http://ultimatemember.com/
|
5 |
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
|
6 |
-
Version: 2.1.
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
Text Domain: ultimate-member
|
3 |
Plugin Name: Ultimate Member
|
4 |
Plugin URI: http://ultimatemember.com/
|
5 |
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
|
6 |
+
Version: 2.1.18
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
Text Domain: ultimate-member
|