Skip to:
Content

BuddyPress.org

Opened 8 years ago

Closed 8 years ago

#7225 closed enhancement (fixed)

bp_get_member_type() probably shouldn't return unregistered types.

Reported by: dcavins's profile dcavins Owned by: dcavins's profile dcavins
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.6.0
Component: Members Keywords: has-patch
Cc:

Description

Related: #7224.

Attachments (2)

7225.01.patch (1.5 KB) - added by dcavins 8 years ago.
Filter member types to make sure they're registered.
7225.02.patch (1.7 KB) - added by dcavins 8 years ago.
Use simpler filtering routine.

Download all attachments as: .zip

Change History (3)

@dcavins
8 years ago

Filter member types to make sure they're registered.

@dcavins
8 years ago

Use simpler filtering routine.

#1 @dcavins
8 years ago

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

In 11045:

Return active types only in bp_get_member_type().

When compiling the array of types for the member in
bp_get_member_type(), only include those types that are currently
registered.

Fixes #7225.

Note: See TracTickets for help on using tickets.