[buddypress-trac] [BuddyPress Trac] #3842: Group and member template functions should check current group/member as well
buddypress-trac
noreply at wordpress.org
Mon Dec 12 23:28:37 UTC 2016
#3842: Group and member template functions should check current group/member as
well
-------------------------------------+------------------
Reporter: boonebgorges | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone: 2.8
Component: Groups | Version:
Severity: normal | Resolution:
Keywords: needs-patch 2nd-opinion |
-------------------------------------+------------------
Changes (by dcavins):
* keywords: needs-patch => needs-patch 2nd-opinion
Comment:
I was thinking about these template functions, too, and offer the attached
as one concept toward bringing the template and other functions closer
together. In it, I've changed `groups_get_current_group()` so that it
checks the `$groups_template` global first then goes to the `buddypress()`
second. The result is that it works in a groups loop or within a group
(inside or outside the `has_groups()` loop that builds the group).
@boonebgorges: Was a single group built using `bp_has_groups()` when you
submitted this ticket, or was that done since (which mostly fixed the
original issue)?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3842#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list