From 2427dcccbb7d0edd074a40418707eb25ab49b075 Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Wed, 27 Jun 2018 12:28:04 +0300 Subject: [PATCH] - fixed save account on password tab; --- includes/um-short-functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/um-short-functions.php b/includes/um-short-functions.php index 40a822fa..6906efee 100644 --- a/includes/um-short-functions.php +++ b/includes/um-short-functions.php @@ -1064,10 +1064,11 @@ function um_requesting_password_reset() { * @return bool */ function um_requesting_password_change() { - if (um_is_core_page( 'account' ) && isset( $_POST['_um_account'] ) == 1) + if ( um_is_core_page( 'account' ) && isset( $_POST['_um_account'] ) == 1 & isset( $_POST['_um_account_tab'] ) == 'password' ) { return true; - else if (isset( $_POST['_um_password_change'] ) && $_POST['_um_password_change'] == 1) + } elseif ( isset( $_POST['_um_password_change'] ) && $_POST['_um_password_change'] == 1 ) { return true; + } return false; }