[buddypress-trac] [BuddyPress Trac] #6752: Provide the group object to the groups template filters
buddypress-trac
noreply at wordpress.org
Sat Nov 28 03:24:45 UTC 2015
#6752: Provide the group object to the groups template filters
--------------------------------+---------------------------
Reporter: garrett-eclipse | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 2.5
Component: Component - Groups | Version: 2.4.0
Severity: normal | Resolution: fixed
Keywords: |
--------------------------------+---------------------------
Changes (by boonebgorges):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"10383"]:
{{{
#!CommitTicketReference repository="" revision="10383"
Pass group objects to some group template filters.
A number of group template functions accept a `$group` parameter, but are
generally used within the group loop, and infer the current group when no
object is explicitly passed to the function. Filter callbacks can
generally
assume which group is intended when the filters are invoked within the
loop
(by examining the `$groups_template` global), but this technique doesn't
work
when the functions are used outside of the loop, with a `$group` passed as
a function parameter. In each of these cases, we should be passing the
`$group`
object - whether inferred or explicit.
Props garrett-eclipse.
Fixes #6752.
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6752#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list