Skip to:
Content

BuddyPress.org

Opened 4 years ago

Closed 4 years ago

#8193 closed defect (bug) (fixed)

bp_is_active( 'core' ) is false

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 6.0.0 Priority: normal
Severity: normal Version:
Component: Core Keywords: has-patch commit
Cc:

Description

Although Core is a required component and is always loaded, false === bp_is_active( 'core' ). That's because the buddypress()->required_components is a regular array and we're checking for a key that doesn't exist core instead of checking if this array contains core.

Attachments (1)

8193.patch (646 bytes) - added by imath 4 years ago.

Download all attachments as: .zip

Change History (4)

@imath
4 years ago

#1 @espellcaste
4 years ago

Sounds good!

#2 @imath
4 years ago

  • Keywords commit added

Thanks for your feedback @espellcaste 👍

#3 @imath
4 years ago

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

In 12517:

Check required components the right way into bp_is_active() function

As the buddypress()->required_components is not an associative array, we need to check values instead of keys.

Props exoconsult

Fixes #8193

Note: See TracTickets for help on using tickets.