Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 11 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:
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 15 years ago.

Download all attachments as: .zip

Change History (2)

#1 @r-a-y
11 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.