From 4ed16c1be15454094cac0ce3f5a3889257efcd84 Mon Sep 17 00:00:00 2001 From: ashubawork Date: Wed, 25 Sep 2024 11:34:25 +0300 Subject: [PATCH] - fix um_get_requested_user --- includes/um-short-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/um-short-functions.php b/includes/um-short-functions.php index ccd7d589..51e1e287 100644 --- a/includes/um-short-functions.php +++ b/includes/um-short-functions.php @@ -1447,7 +1447,7 @@ function um_set_requested_user( $user_id ) { */ function um_get_requested_user() { if ( ! empty( UM()->user()->target_id ) ) { - return UM()->user()->target_id; + return absint( UM()->user()->target_id ); } return false;