Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 13 years ago

#3577 closed defect (bug) (fixed)

BP_Component fails to register component in loaded_components in some cases

Reported by: boonebgorges's profile boonebgorges Owned by:
Milestone: 1.5 Priority: minor
Severity: minor Version: 1.5
Component: Core Keywords:
Cc:

Description

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.

Change History (1)

#1 @boonebgorges
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5147]) Ensure that extensions of BP_Component have a default slug property. Fixes #3577

Note: See TracTickets for help on using tickets.