From 43a8e7e3d53628c632970e04f035d8d692a69f24 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Wed, 16 Dec 2020 11:52:07 +0800 Subject: [PATCH] Add third parameter $args to the action hook for Profile Tab redirections There was an issue with attaching the Profile tab redirection to `um_after_user_updated` because the file couldn't upload in a custom tab because it doesn't reach the `UM()->uploader()->move_temporary_files` after saving the profile with uploaded files and images. Attaching it to `um_user_after_updating_profile` resolves the issue. --- includes/core/um-actions-profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core/um-actions-profile.php b/includes/core/um-actions-profile.php index 67826f1b..b81ef5a6 100644 --- a/includes/core/um-actions-profile.php +++ b/includes/core/um-actions-profile.php @@ -536,7 +536,7 @@ function um_user_edit_profile( $args ) { * } * ?> */ - do_action( 'um_user_after_updating_profile', $to_update, $user_id ); + do_action( 'um_user_after_updating_profile', $to_update, $user_id, $args ); /** * UM hook