From e413b4f630f8673bd4581ecae13e68c9dd25e8e0 Mon Sep 17 00:00:00 2001 From: Mike Thicke Date: Thu, 19 Dec 2024 14:45:24 -0500 Subject: [PATCH] Use native WP function for determining user id --- plugins/humanities-commons/humanities-commons.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/humanities-commons/humanities-commons.php b/plugins/humanities-commons/humanities-commons.php index 7ed260cfd..b3d3427e7 100644 --- a/plugins/humanities-commons/humanities-commons.php +++ b/plugins/humanities-commons/humanities-commons.php @@ -1724,7 +1724,7 @@ public static function hcommons_get_user_org_memberships() { if ( ! function_exists( 'bp_get_member_type' ) ) { return []; } - $member_types = bp_get_member_type( bp_get_displayed_user_id(), false ); + $member_types = bp_get_member_type( get_current_user_id(), false ); if ( empty( $member_types ) ) { return []; }