mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
@@ -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;
|
||||
|
||||
@@ -155,6 +155,11 @@ 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: May xx, 2021 =
|
||||
|
||||
* Bugfixes:
|
||||
- Fixed: Regular expression for registration form and username field (added ability to use spaces) (#812)
|
||||
|
||||
= 2.1.17: April 14, 2021 =
|
||||
|
||||
* Enhancements:
|
||||
|
||||
+1
-1
@@ -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-alpha
|
||||
Author: Ultimate Member
|
||||
Author URI: http://ultimatemember.com/
|
||||
Text Domain: ultimate-member
|
||||
|
||||
Reference in New Issue
Block a user