Skip to content

Commit

Permalink
Use native WP function for determining user id
Browse files Browse the repository at this point in the history
  • Loading branch information
mikethicke committed Dec 19, 2024
1 parent fb1c416 commit e413b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/humanities-commons/humanities-commons.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
}
Expand Down

0 comments on commit e413b4f

Please sign in to comment.