Skip to:
Content

BuddyPress.org

Changeset 14040


Ignore:
Timestamp:
10/08/2024 03:22:19 AM (5 months ago)
Author:
imath
Message:

Use the components right labels into the BP site health info panel

Props emaralive.

Fixes #9237 (14.0 branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/14.0/src/bp-core/admin/bp-core-admin-tools.php

    r13886 r14040  
    775775    }
    776776
    777     $active_components = wp_list_pluck( bp_core_get_active_components( array(), 'objects' ), 'name', 'id' );
     777    $all_components    = bp_core_get_components();
     778    $active_components = array_merge( buddypress()->active_components, array( 'core' => '1' ) );
     779    $active_components = wp_list_pluck( array_intersect_key( $all_components, $active_components ), 'title' );
    778780    $bp_settings       = array();
    779781    $skipped_settings  = array( '_bp_theme_package_id', '_bp_community_visibility' );
Note: See TracChangeset for help on using the changeset viewer.