Changeset 6067 for trunk/bp-core/admin/bp-core-update.php
- Timestamp:
- 06/08/2012 09:52:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-update.php
r5980 r6067 1038 1038 delete_site_option( bp_get_root_blog_id(), '_bp-core-db-version' ); 1039 1039 delete_site_option( bp_get_root_blog_id(), '_bp_db_version' ); 1040 1041 // Some legacy options need to be flipped from 1 to 0s 1042 $legacy_options = array( 1043 'bp-disable-account-deletion', 1044 'bp-disable-avatar-uploads', 1045 'bp-disable-profile-sync', 1046 'bp_restrict_group_creation', 1047 'hide-loggedout-adminbar', 1048 ); 1049 1050 /** 1051 * Note: Each of these options is represented by its opposite in the UI 1052 * Ie, the Profile Syncing option reads "Enable Sync", so when it's checked, 1053 * the corresponding option should be unset. 1054 */ 1055 foreach( $legacy_options as $legacy_option ) { 1056 $value = bp_get_option( $legacy_option ); 1057 if ( empty( $value ) ) 1058 $value = 1; 1059 else 1060 $value = 0; 1061 1062 bp_update_option( $legacy_option, $value ); 1063 } 1040 1064 } 1041 1065
Note: See TracChangeset
for help on using the changeset viewer.