[buddypress-trac] [BuddyPress Trac] #5812: BP_Group_Extension::_register() should only run if there is a valid group ID

buddypress-trac noreply at wordpress.org
Wed Aug 13 17:36:14 UTC 2014


#5812: BP_Group_Extension::_register() should only run if there is a valid group
ID
--------------------------+------------------
 Reporter:  r-a-y         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.1
Component:  Groups        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by boonebgorges):

 I doubt there will be unforeseen issues, but it's possible - there may be
 plugins that analyze the available BP_Group_Extension extension on each
 pageload, and leaving them half-initialized could be a problem for them.

 A more conservative approach is to bail at the beginning of
 `user_meets_access_condition()` if `$this->group_id` is empty. Will that
 take care of the db queries?

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


More information about the buddypress-trac mailing list