Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 23 months ago

Last modified 23 months ago

#4075 closed enhancement (fixed)

bp_has_profile() should accept multiple values of profile_group_id

Reported by: boonebgorges's profile boonebgorges Owned by: espellcaste's profile espellcaste
Milestone: 11.0.0 Priority: normal
Severity: minor Version:
Component: Extended Profile Keywords: has-patch has-unit-tests commit
Cc:

Description

At the moment, it's only possible to pass a single profile_group_id to bp_has_profile(). We should allow for comma-separated or array values as well.

Change History (11)

#1 @slaFFik
8 years ago

  • Milestone changed from Future Release to 2.8

#2 @DJPaul
8 years ago

This is non-trivial because this involves adapting the query all the places down, plus tests.

#3 in reply to: ↑ description @bhargavbhandari90
8 years ago

I saw that, it's already accepting the array.
Replying to boonebgorges:

At the moment, it's only possible to pass a single profile_group_id to bp_has_profile(). We should allow for comma-separated or array values as well.

#4 @DJPaul
8 years ago

  • Milestone changed from 2.8 to Future Release

#5 @espellcaste
3 years ago

  • Milestone changed from Awaiting Contributions to 11.0.0
  • Owner set to espellcaste
  • Status changed from new to assigned

This ticket was mentioned in PR #30 on buddypress/buddypress by renatonascalves.


23 months ago
#6

  • Keywords has-patch has-unit-tests added

#7 @espellcaste
23 months ago

@boonebgorges or @imath

Could you review my pull request when you have a chance?

#8 @imath
23 months ago

@espellcaste looking at it right away

#9 @imath
23 months ago

  • Keywords commit added

The PR looks great, let’s have this in!

#10 @imath
23 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 13358:

xProfile: allow the loop to fetch fields from multiple fields group

You can now pass an array of fields group ID into the $profile_group_id
parameter.

Props boonebgorges, espellcaste

Closes https://github.com/buddypress/buddypress/pull/30
Fixes #4075

This ticket was mentioned in Slack in #buddypress by imath. View the logs.


23 months ago

Note: See TracTickets for help on using tickets.