From 9da58475dc8d3baf4aa5714b42ce30b7b9da520f Mon Sep 17 00:00:00 2001 From: yuriinalivaiko Date: Thu, 10 Oct 2024 19:45:48 +0300 Subject: [PATCH] - fixed editing of other members profile for administrator --- includes/frontend/class-user-profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/frontend/class-user-profile.php b/includes/frontend/class-user-profile.php index f77cd3cc..a2fb176e 100644 --- a/includes/frontend/class-user-profile.php +++ b/includes/frontend/class-user-profile.php @@ -60,7 +60,7 @@ if ( ! class_exists( 'um\frontend\User_Profile' ) ) { exit; } - if ( ! um_can_edit_my_profile() ) { + if ( um_is_myprofile() && ! um_can_edit_my_profile() ) { um_safe_redirect( um_edit_my_profile_cancel_uri() ); exit; }