Changeset 5749 for trunk/bp-core/admin/bp-core-components.php
- Timestamp:
- 02/13/2012 04:03:55 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-components.php
r5683 r5749 52 52 */ 53 53 function bp_core_admin_components_options() { 54 global $bp_wizard;55 54 56 55 // Load core functions, if needed … … 131 130 132 131 // On new install, set all components to be active by default 133 if ( !empty( $bp_wizard ) && 'install' == $bp_wizard->setup_type && empty( $active_components) )132 if ( empty( $active_components ) && ( bp_get_maintenance_mode() == 'install' ) ) 134 133 $active_components = $optional_components; 135 134 136 ?> 137 138 <?php /* The setup wizard uses different, more descriptive text here */ ?> 139 <?php if ( empty( $bp_wizard ) ) : ?> 135 // The setup wizard uses different, more descriptive text 136 if ( bp_get_maintenance_mode() ) : ?> 140 137 141 138 <h3><?php _e( 'Available Components', 'buddypress' ); ?></h3> … … 169 166 </table> 170 167 171 <?php if ( empty( $bp_wizard) ) : ?>168 <?php if ( bp_get_maintenance_mode() ) : ?> 172 169 173 170 <h3><?php _e( 'Required Components', 'buddypress' ); ?></h3>
Note: See TracChangeset
for help on using the changeset viewer.