Changeset 9555 for trunk/src/bp-core/admin/bp-core-admin-components.php
- Timestamp:
- 02/24/2015 01:48:42 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-components.php
r9544 r9555 308 308 } 309 309 310 $current_components = buddypress()->active_components; 310 $current_components = buddypress()->active_components; 311 $packaged_components = array_flip( bp_core_get_packaged_component_ids() ); 312 $custom_active_components = array_diff_key( $current_components, $packaged_components ); 311 313 312 314 switch ( $current_action ) { … … 316 318 if ( ! isset( $submitted[ $retired_component ] ) ) { 317 319 unset( $current_components[ $retired_component ] ); 320 321 // Make sure custom components does not contain a retired component 322 if ( isset( $custom_active_components[ $retired_component ] ) ) { 323 unset( $custom_active_components[ $retired_component ] ); 324 } 318 325 } 319 326 } … … 331 338 } 332 339 333 return $components; 340 // Active components is the list of packaged and custom components 341 return array_merge( $components, $custom_active_components ); 334 342 } 335 343
Note: See TracChangeset
for help on using the changeset viewer.