Fix add error filter

This commit is contained in:
champsupertramp
2016-05-21 12:38:06 +08:00
parent 32adfa9f88
commit 0fe320edf3
+1 -1
View File
@@ -40,7 +40,7 @@ class UM_Form {
function add_error( $key, $error ) {
if ( ! isset( $this->errors[ $key ] ) ){
$error = apply_filters('um_submit_form_error', $key, $error );
$error = apply_filters('um_submit_form_error', $error , $key );
$this->errors[ $key ] = $error;
}