- fixed account submission for password reset;

This commit is contained in:
nikitasinelnikov
2020-08-03 18:06:26 +03:00
parent 585870bb3d
commit 5e782cf922
11 changed files with 220 additions and 112 deletions
+3 -2
View File
@@ -2279,7 +2279,8 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
} else {
if ( $this->set_mode == 'account' || um_is_core_page( 'account' ) ) {
if ( UM()->account()->current_password_is_required( 'password' ) &&
( $this->set_mode == 'account' || um_is_core_page( 'account' ) ) ) {
$key = 'current_' . $original_key;
$output .= '<div ' . $this->get_atts( $key, $classes, $conditional, $data ) . '>';
@@ -2302,7 +2303,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
if ( $this->is_error( $key ) ) {
$output .= $this->field_error( $this->show_error( $key ) );
}else if ( $this->is_notice( $key ) ) {
} elseif ( $this->is_notice( $key ) ) {
$output .= $this->field_notice( $this->show_notice( $key ) );
}