[buddypress-trac] [BuddyPress Trac] #5871: bp_get_the_post_class() can generate an error if the groups component is deactivated

buddypress-trac noreply at wordpress.org
Wed Sep 10 21:59:20 UTC 2014


#5871: bp_get_the_post_class() can generate an error if the groups component is
deactivated
------------------------------+---------------------
 Reporter:  imath             |       Owner:  imath
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  2.1
Component:  Core              |     Version:  1.2
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------
Changes (by imath):

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


Comment:

 In [changeset:"9002"]:
 {{{
 #!CommitTicketReference repository="" revision="9002"
 In {{{bp_is_group()}}}, make sure Groups component is active before trying
 to get current group.

 In case the groups component has been deactivated, as the WordPress page
 still exists, there is a possibility the Groups page is displayed. In that
 case, this commit prevents an error.

 Fixes #5871
 }}}

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


More information about the buddypress-trac mailing list