- fix for profile form;

This commit is contained in:
Mykyta Synelnikov
2023-07-01 01:52:43 +03:00
parent 2ca243787e
commit dad4c8017c
7 changed files with 114 additions and 155 deletions
+8 -4
View File
@@ -2119,11 +2119,15 @@ if ( ! class_exists( 'um\core\User' ) ) {
/**
* Update profile
*
* @param $changes
* @param array $changes
* @param string $context
*/
public function update_profile( $changes ) {
$this->updating_process = true;
$args['ID'] = $this->id;
public function update_profile( $changes, $context = '' ) {
if ( 'account' !== $context ) {
$this->updating_process = true;
}
$args['ID'] = $this->id;
/**
* Filters the update profile changes data.