Changeset 9608 for trunk/src/bp-core/admin/bp-core-admin-components.php
- Timestamp:
- 03/10/2015 03:23:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-components.php
r9605 r9608 310 310 } 311 311 312 $current_components = buddypress()->active_components; 313 $packaged_components = array_flip( bp_core_get_packaged_component_ids() ); 314 $custom_active_components = array_diff_key( $current_components, $packaged_components ); 312 $current_components = buddypress()->active_components; 315 313 316 314 switch ( $current_action ) { … … 320 318 if ( ! isset( $submitted[ $retired_component ] ) ) { 321 319 unset( $current_components[ $retired_component ] ); 322 323 // Make sure custom components does not contain a retired component324 if ( isset( $custom_active_components[ $retired_component ] ) ) {325 unset( $custom_active_components[ $retired_component ] );326 }327 320 } 328 321 } … … 340 333 } 341 334 342 // Active components is the list of packaged and custom components 343 return array_merge( $components, $custom_active_components ); 335 return $components; 344 336 } 345 337
Note: See TracChangeset
for help on using the changeset viewer.