Skip to:

Opened 14 years ago

Closed 10 years ago

#2282 closed enhancement (fixed)

bp_has_* defaults filters

Reported by: mattwiebe's profile mattwiebe Owned by:
Milestone: 2.0 Priority: normal
Severity: normal Version:
Component: Activity Keywords:


All of the bp_has_* functions currently have an output filter, but I think there should also be filters for the $defaults array. Filtering the output of the function in any meaningful way requires an extra query to the relevant template Class that could be avoided by filtering defaults instead.

I've attached an example diff of what that would look like for bp_has_activities(). (I haven't submitted a diff before, so hopefully it works!)

Attachments (1)

defaults_filters.diff (627 bytes) - added by mattwiebe 14 years ago.

Download all attachments as: .zip

Change History (2)

#1 @r-a-y
10 years ago

  • Milestone changed from Future Release to 2.0
  • Resolution set to fixed
  • Severity set to normal
  • Status changed from new to closed

This is fixed as of r8142.

View the corresponding codex article for more info:

Note: See TracTickets for help on using tickets.