[buddypress-trac] [BuddyPress Trac] #6268: bp_has_activities() should check if the groups component is active before using one of its functions

buddypress-trac noreply at wordpress.org
Sat Feb 28 14:23:37 UTC 2015


#6268: bp_has_activities() should check if the groups component is active before
using one of its functions
----------------------------------+---------------------
 Reporter:  imath                 |       Owner:  imath
     Type:  defect (bug)          |      Status:  closed
 Priority:  normal                |   Milestone:  2.3
Component:  Component - Activity  |     Version:
 Severity:  normal                |  Resolution:  fixed
 Keywords:  has-patch             |
----------------------------------+---------------------
Changes (by imath):

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


Comment:

 In [changeset:"9569"]:
 {{{
 #!CommitTicketReference repository="" revision="9569"
 Activity: in `bp_has_activities()` use `bp_is_group()` instead of
 `groups_get_current_group()`

 Since r9536, `bp_has_activities()` is using the
 `groups_get_current_group()` function, which needs the Groups component to
 be active. There can be cases when this component has not been activated
 by the community administrator. In such cases, using this function is
 generating a fatal error. Using `bp_is_group()` is avoiding this error.

 Fixes #6268
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6268#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list