mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-20 07:04:06 +09:00
Fix add error filter
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ class UM_Form {
|
|||||||
function add_error( $key, $error ) {
|
function add_error( $key, $error ) {
|
||||||
if ( ! isset( $this->errors[ $key ] ) ){
|
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;
|
$this->errors[ $key ] = $error;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user