Skip to:

Opened 14 years ago

Closed 14 years ago

#2620 closed enhancement (fixed)

[patch] Exclude parameter for bp_has_members()

Reported by: boonebgorges's profile boonebgorges Owned by: boonebgorges's profile boonebgorges
Milestone: 1.5 Priority: normal
Severity: Version:
Component: Core Keywords: has-patch needs-testing


This patch adds an exclude parameter for bp_has_members().

I've also added a few lines to allow $include and $exclude to be arrays as well as comma-separated lists.

I'll be following up with similar patches for other bp_has_x() queries.

Attachments (3)

2620.patch (7.4 KB) - added by boonebgorges 14 years ago.
2620-2.patch (8.0 KB) - added by boonebgorges 14 years ago.
2620-3.patch (7.5 KB) - added by boonebgorges 14 years ago.

Download all attachments as: .zip

Change History (6)

14 years ago

#1 @wpmuguru
14 years ago

For backward compatibility, $exclude should be added to the end of the function parameter list and have a default value.

#2 @boonebgorges
14 years ago

Good call, Ron. See second patch.

#3 @boonebgorges
14 years ago

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

(In [3368]) Adds exclude parameter for bp_has_members(). Fixes #2620

Note: See TracTickets for help on using tickets.