[buddypress-trac] [BuddyPress] #3577: BP_Component fails to register component in loaded_components in some cases

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Sep 14 13:13:19 UTC 2011


#3577: BP_Component fails to register component in loaded_components in some cases
--------------------------+-----------------
 Reporter:  boonebgorges  |      Owner:
     Type:  defect        |     Status:  new
 Priority:  minor         |  Milestone:  1.5
Component:  Core          |    Version:  1.5
 Severity:  minor         |   Keywords:
--------------------------+-----------------
 If you extend BP_Component without setting $this->slug in your component,
 things get messed up. For one thing, you get a fatal error when BP loops
 through loaded_components in bp_core_activation_notice(), because the
 component_id is empty for the component in question.

 This will only be a problem in edge cases where components do not register
 their globals properly. However, we can avoid even these problems by
 making sure that $bp->{$component}->slug has a default value, which would
 logically be $bp->{$component}->id.

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


More information about the buddypress-trac mailing list