Skip to:
Content

BuddyPress.org

Changeset 4025


Ignore:
Timestamp:
02/08/2011 07:39:31 PM (16 years ago)
Author:
djpaul
Message:

Update wizard setup to store active components in the new option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-update.php

    r4001 r4025  
    792792                        check_admin_referer( 'bpwizard_components' );
    793793
    794                         $disabled = array();
     794                        $active_components = array();
    795795
    796796                        // Settings form submitted, now save the settings.
    797                         foreach ( (array)$_POST['bp_components'] as $key => $value ) {
    798                                 if ( !(int) $value )
    799                                         $disabled[$key] = 1;
    800                         }
    801                         update_site_option( 'bp-deactivated-components', $disabled );
     797                        foreach ( (array)$_POST['bp_components'] as $key => $value )
     798                                $active_components[$key] = 1;
     799
     800                        update_site_option( 'bp-active-components', $active_components );
    802801
    803802                        wp_cache_flush();
Note: See TracChangeset for help on using the changeset viewer.