Ticket #4081: 4081.01.diff
File 4081.01.diff, 1.6 KB (added by , 13 years ago) |
---|
-
bp-core/bp-core-loader.php
77 77 $bp->deactivated_components = apply_filters( 'bp_deactivated_components', $trimmed ); 78 78 79 79 // Setup the active components 80 $active_components = array_f lip( array_diff( array_values( array_merge( $bp->optional_components, $bp->required_components ) ), array_values( $bp->deactivated_components ) ));80 $active_components = array_fill_keys( array_diff( array_values( array_merge( $optional_components, $required_components ) ), array_values( $deactivated_components ) ), '1' ); 81 81 82 // Loop through active components and set the values83 $bp->active_components = array_map( '__return_true', $active_components );84 85 82 // Set the active component global 86 83 $bp->active_components = apply_filters( 'bp_active_components', $bp->active_components ); 87 84 … … 92 89 $bp->deactivated_components = array(); 93 90 94 91 // Setup the active components 95 $active_components = array_f lip( array_values( array_merge( $bp->optional_components, $bp->required_components ) ));92 $active_components = array_fill_keys( array_values( array_merge( $bp->optional_components, $bp->required_components ) ), '1' ); 96 93 97 // Loop through active components and set the values98 $bp->active_components = array_map( '__return_true', $active_components );99 100 94 // Set the active component global 101 95 $bp->active_components = apply_filters( 'bp_active_components', $bp->active_components ); 102 96 }