- fixed account form;

This commit is contained in:
Mykyta Synelnikov
2023-07-01 12:46:43 +03:00
parent dad4c8017c
commit 755ff6a790
2 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -2151,7 +2151,7 @@ if ( ! class_exists( 'um\core\User' ) ) {
*/
$changes = apply_filters( 'um_before_update_profile', $changes, $args['ID'] );
foreach ( $changes as $key => $value ) {
if ( $this->is_metakey_banned( $key, 'submission' ) ) {
if ( $this->is_metakey_banned( $key, ( 'account' !== $context ) ? 'submission' : '' ) ) {
continue;
}