Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 18 months ago

Last modified 17 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
7 years ago

  • Milestone changed from Future Release to 2.8

#2 @DJPaul
7 years ago

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

#3 in reply to: ↑ description @bhargavbhandari90
7 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
7 years ago

  • Milestone changed from 2.8 to Future Release

#5 @espellcaste
2 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.


18 months ago
#6

  • Keywords has-patch has-unit-tests added

#7 @espellcaste
18 months ago

@boonebgorges or @imath

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

#8 @imath
18 months ago

@espellcaste looking at it right away

#9 @imath
18 months ago

  • Keywords commit added

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

#10 @imath
18 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.


17 months ago

Note: See TracTickets for help on using tickets.