Skip to:
Content

Opened 9 years ago

Closed 5 years ago

#2282 closed enhancement (fixed)

bp_has_* defaults filters

Reported by: mattwiebe Owned by:
Milestone: 2.0 Priority: normal
Severity: normal Version:
Component: Activity Keywords:
Cc:

Description

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 9 years ago.

Download all attachments as: .zip

Change History (2)

#1 @r-a-y
5 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:
http://codex.buddypress.org/plugindev/using-bp_parse_args-to-filter-buddypress-template-loops/

Note: See TracTickets for help on using tickets.