Skip to:
Content

BuddyPress.org

Opened 17 years ago

Closed 12 years ago

#2282 closed enhancement (fixed)

bp_has_* defaults filters

Reported by: mattwiebe Owned by:
Priority: normal Milestone: 2.0
Component: Activity Version:
Severity: normal 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 17 years ago.

Download all attachments as: .zip

Change History (2)

#1 @r-a-y
12 years ago

  • Milestone Future Release → 2.0
  • Resolution → fixed
  • Severity → normal
  • Status new → 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.