Skip to:
Content

BuddyPress.org

Ticket #8193: 8193.patch

File 8193.patch, 646 bytes (added by imath, 4 years ago)
  • src/bp-core/bp-core-template.php

    diff --git src/bp-core/bp-core-template.php src/bp-core/bp-core-template.php
    index 91b6b20e6..156d43bcd 100644
    function bp_is_active( $component = '', $feature = '' ) { 
    20732073        }
    20742074
    20752075        // Is component in either the active or required components arrays.
    2076         if ( isset( buddypress()->active_components[ $component ] ) || isset( buddypress()->required_components[ $component ] ) ) {
     2076        if ( isset( buddypress()->active_components[ $component ] ) || in_array( $component, buddypress()->required_components, true ) ) {
    20772077                $retval = true;
    20782078
    20792079                // Is feature active?