From ad28039422a9538224c32c55a0d219fc5cafad2f Mon Sep 17 00:00:00 2001 From: denisbaranov Date: Tue, 20 Aug 2019 19:32:51 +0300 Subject: [PATCH] Issue: Profile photo upload in pop up gets stuck on 'processing' Link: https://secure.helpscout.net/conversation/933974856/33012?folderId=1651531 --- includes/core/class-files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core/class-files.php b/includes/core/class-files.php index b91786cb..8f43c729 100644 --- a/includes/core/class-files.php +++ b/includes/core/class-files.php @@ -312,7 +312,7 @@ if ( ! class_exists( 'um\core\Files' ) ) { $id = $_POST['key']; $timestamp = $_POST['timestamp']; $nonce = $_POST['_wpnonce']; - $user_id = $_POST['user_id']; + $user_id = empty( $_POST['user_id'] ) ? get_current_user_id() : $_POST['user_id']; UM()->fields()->set_id = $_POST['set_id']; UM()->fields()->set_mode = $_POST['set_mode'];