Skip to:
Content

BuddyPress.org

Ticket #9237: 9237.01.patch

File 9237.01.patch, 923 bytes (added by emaralive, 6 months ago)

Initial patch

  • src/bp-core/admin/bp-core-admin-tools.php

    diff --git src/bp-core/admin/bp-core-admin-tools.php src/bp-core/admin/bp-core-admin-tools.php
    index 5702fd29a..52900fda4 100644
    function bp_core_admin_debug_information( $debug_info = array() ) { 
    774774                return $debug_info;
    775775        }
    776776
    777         $active_components = wp_list_pluck( bp_core_get_active_components( array(), 'objects' ), 'name', 'id' );
     777        $all_components    = array_merge( buddypress()->optional_components, buddypress()->required_components );
     778        $active_components = array_flip( array_diff( $all_components, buddypress()->deactivated_components ) );
     779        $active_components = wp_list_pluck( array_intersect_key( bp_core_get_components(), $active_components ), 'title' );
    778780        $bp_settings       = array();
    779781        $skipped_settings  = array( '_bp_theme_package_id', '_bp_community_visibility' );
    780782        $bp_url_parsers    = array(