Fix apply filter typos

This commit is contained in:
Champ Camba
2016-12-31 20:59:44 +08:00
parent 10267abbe7
commit 71d65a62a8
+2 -2
View File
@@ -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;