From 71d65a62a8ff920b724131d675337790571ff338 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Sat, 31 Dec 2016 20:59:44 +0800 Subject: [PATCH] Fix apply filter typos --- core/um-validation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/um-validation.php b/core/um-validation.php index 04c3cdba..3a505976 100644 --- a/core/um-validation.php +++ b/core/um-validation.php @@ -54,7 +54,7 @@ class UM_Validation { ***/ function safe_username( $string ) { - $regex_safe_username = apply_filter('um_validation_safe_username_regex',$this->regex_safe ); + $regex_safe_username = apply_filters('um_validation_safe_username_regex',$this->regex_safe ); if ( is_email( $string ) ) return true; @@ -68,7 +68,7 @@ class UM_Validation { ***/ function safe_string($string){ - $regex_safe_string = apply_filter('um_validation_safe_string_regex',$this->regex_safe ); + $regex_safe_string = apply_filters('um_validation_safe_string_regex',$this->regex_safe ); if ( !preg_match( $regex_safe_string, $string) ){ return false;