mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Update ReduxFramework validation file
This commit is contained in:
+2
-1
@@ -27,7 +27,8 @@
|
||||
*/
|
||||
function validate() {
|
||||
|
||||
$this->value = preg_replace( $this->field['preg']['pattern'], $this->field['preg']['replacement'], $this->value );
|
||||
$this->value = preg_replace_callback($this->field['preg']['pattern'], function($matches){return $this->field['preg']['replacement'];}, $this->value);
|
||||
|
||||
} //function
|
||||
} //class
|
||||
}
|
||||
Reference in New Issue
Block a user