[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:02:40 UTC 2015


#6268: bp_has_activities() should check if the groups component is active before
using one of its functions
----------------------------------+-----------------------
 Reporter:  imath                 |      Owner:
     Type:  defect (bug)          |     Status:  new
 Priority:  normal                |  Milestone:  2.3
Component:  Component - Activity  |    Version:
 Severity:  normal                |   Keywords:  has-patch
----------------------------------+-----------------------
 Since r9536, `bp_has_activities()` is using `groups_get_current_group()`
 at line 625. The problem is: when the Groups component is not active, we
 get a fatal error as the function is not available.

 I suggest to use a `bp_is_active()` check to avoid it.

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


More information about the buddypress-trac mailing list