Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#2695 closed defect (bug) (no action required)

bp_has_groups ignore user_id

Reported by: laullon's profile laullon Owned by:
Milestone: 1.2.7 Priority: normal
Severity: Version:
Component: Groups Keywords: bp_has_groups user_id
Cc:

Description

The method bp_has_groups ignore the argument user_id.

Line 142:

/* User filtering */
	if ( !empty( $bp->displayed_user->id ) )
		$user_id = $bp->displayed_user->id;

Must be:

/* User filtering */
	if ( !empty( $user_id ) )
		$user_id = $bp->displayed_user->id;

Change History (2)

#1 @laullon
14 years ago

correction:

/* User filtering */
	if ( empty( $user_id ) )
		$user_id = $bp->displayed_user->id;

#2 @laullon
14 years ago

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.