Merge pull request #813 from ultimatemember/development/2.1.18

Development process 2.1.18
This commit is contained in:
Nikita Sinelnikov
2021-04-19 16:26:35 +03:00
committed by GitHub
4 changed files with 11 additions and 4 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -2
View File
@@ -19,6 +19,7 @@ if ( ! class_exists( 'um\core\Validation' ) ) {
*/
function __construct() {
$this->regex_safe = '/\A[\w\-\.]+\z/';
$this->regex_username_safe = '|[^a-z0-9 _.\-@]|i';
$this->regex_phone_number = '/\A[\d\-\.\+\(\)\ ]+\z/';
@@ -214,12 +215,12 @@ if ( ! class_exists( 'um\core\Validation' ) ) {
* }
* ?>
*/
$regex_safe_username = apply_filters('um_validation_safe_username_regex',$this->regex_safe );
$regex_safe_username = apply_filters( 'um_validation_safe_username_regex', $this->regex_username_safe );
if ( is_email( $string ) ) {
return true;
}
if ( ! is_email( $string ) && ! preg_match( $regex_safe_username, $string ) ) {
if ( ! is_email( $string ) && preg_match( $regex_safe_username, $string ) ) {
return false;
}
return true;
+6
View File
@@ -155,6 +155,12 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
* To learn more about version 2.1 please see this [docs](https://docs.ultimatemember.com/article/1512-upgrade-2-1-0)
* 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
= 2.1.18: April 19, 2021 =
* Bugfixes:
- Fixed: Endless JS loop when filtering on Member Directory page
- Fixed: Regular expression for registration form and username field (added ability to use spaces) (#812)
= 2.1.17: April 14, 2021 =
* Enhancements:
+1 -1
View File
@@ -3,7 +3,7 @@
Plugin Name: Ultimate Member
Plugin URI: http://ultimatemember.com/
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
Version: 2.1.17
Version: 2.1.18
Author: Ultimate Member
Author URI: http://ultimatemember.com/
Text Domain: ultimate-member