[buddypress-trac] [BuddyPress Trac] #5637: Use bp_activity_set_action() to fill bp-templates activity dropdowns

buddypress-trac noreply at wordpress.org
Fri May 16 13:05:36 UTC 2014

#5637: Use bp_activity_set_action() to fill bp-templates activity dropdowns
 Reporter:  imath        |       Owner:  boonebgorges
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  2.1
Component:  Activity     |     Version:  2.0
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


 In [changeset:"8428"]:
 #!CommitTicketReference repository="" revision="8428"
 Introduce bp_activity_show_filters(), and use it for generating dynamic
 activity filter dropdowns

 Activity filter dropdowns were previously hardcoded into templates, with
 template-specific hooks for plugins to add their own filter values. This
 resulted in an inconsistent and awkward process of maintaining filter
 between components. The new method introduces new parameters to
 $context (an array of the contexts in which the filter should appear) and
 $label (the text that should be used when generating the <option> markup).
 new function bp_activity_show_filter() is then used in the templates to
 generate a dynamic list of <option> markup, based on the values registered
 the activity types.

 Fixes #5637

 Props imath

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5637#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list