[buddypress-trac] [BuddyPress Trac] #6387: Fix for bp_groups-template in order to support Ajax for group admin actions
buddypress-trac
noreply at wordpress.org
Thu Jun 18 22:13:29 UTC 2015
#6387: Fix for bp_groups-template in order to support Ajax for group admin actions
-------------------------------------------+-----------------------
Reporter: lenasterg | Owner:
Type: enhancement | Status: assigned
Priority: normal | Milestone: 2.4
Component: Component - Groups | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing early |
-------------------------------------------+-----------------------
Comment (by r-a-y):
`bp-groups-template.php.patch` has the potential to break links for those
relying on the `$groups_template` global.
Instead, `01.patch` sets the `$group` object to
`groups_get_current_group()` after the group check in `$groups_template`
does not exist for all our group template functions.
This should allow us to use group template functions across all group
contexts now, which is something I've wanted to do for awhile now.
I'll split the changes to add a second parameter for
`bp_group_member_demote_link()`, `bp_group_member_ban_link()`,
`bp_group_member_unban_link()` and `bp_group_member_remove_link()` into
separate commits.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6387#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list