[buddypress-trac] [BuddyPress] #2536: groups_update_last_activity() setup wrong
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Thu Jul 15 19:14:43 UTC 2010
#2536: groups_update_last_activity() setup wrong
---------------------+------------------------------------------------------
Reporter: dwenaus | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.3
Component: Core | Keywords:
---------------------+------------------------------------------------------
I saw a plugin that hooked into the groups_update_last_activity()
function, (line 1355 in bp-groups.php) which accepts a group_id, however
if you don't pass it a group_id, which is the case for actions, then the
function does not look up the default id from $bp. The action hooks below
it also probably don't work, and are therefore perhaps redundant.
If I'm correct I suggest fixing this function by adding some code that
sets the group_id to the current group if one is not passed.
--
Ticket URL: <http://trac.buddypress.org/ticket/2536>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list