Changeset 9609 for branches/2.2/src/bp-core/admin/bp-core-components.php
- Timestamp:
- 03/10/2015 03:24:04 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/src/bp-core/admin/bp-core-components.php
r9553 r9609 300 300 } 301 301 302 $current_components = buddypress()->active_components; 303 $packaged_components = array_flip( bp_core_get_packaged_component_ids() ); 304 $custom_active_components = array_diff_key( $current_components, $packaged_components ); 302 $current_components = buddypress()->active_components; 305 303 306 304 switch ( $current_action ) { … … 310 308 if ( ! isset( $submitted[ $retired_component ] ) ) { 311 309 unset( $current_components[ $retired_component ] ); 312 313 // Make sure custom components does not contain a retired component314 if ( isset( $custom_active_components[ $retired_component ] ) ) {315 unset( $custom_active_components[ $retired_component ] );316 }317 310 } 318 311 } … … 330 323 } 331 324 332 // Active components is the list of packaged and custom components 333 return array_merge( $components, $custom_active_components ); 325 return $components; 334 326 } 335 327
Note: See TracChangeset
for help on using the changeset viewer.