Changeset 7904
- Timestamp:
- 02/17/2014 12:42:05 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-options.php
r7893 r7904 80 80 81 81 // Force the BuddyBar 82 '_bp_force_buddybar' => false 82 '_bp_force_buddybar' => false, 83 84 /** Legacy theme *********************************************/ 85 86 // Whether to register the bp-default themes directory 87 '_bp_retain_bp_default' => false, 88 89 /** Widgets **************************************************/ 90 'widget_bp_core_login_widget' => false, 91 'widget_bp_core_members_widget' => false, 92 'widget_bp_core_whos_online_widget' => false, 93 'widget_bp_core_recently_active_widget' => false, 94 'widget_bp_groups_widget' => false, 95 'widget_bp_messages_sitewide_notices_widget' => false, 83 96 ); 84 97 … … 89 102 * Add default options when BuddyPress is first activated. 90 103 * 91 * Hooked to bp_activate, it is only called once when BuddyPress is activated. 92 * This is non-destructive, so existing settings will not be overridden. 93 * 94 * Currently unused. 104 * Only called once when BuddyPress is activated. 105 * Non-destructive, so existing settings will not be overridden. 95 106 * 96 107 * @since BuddyPress (1.6.0) … … 106 117 107 118 // Add default options 108 foreach ( $options as $key => $value ) 109 add_option( $key, $value ); 119 foreach ( $options as $key => $value ) { 120 bp_add_option( $key, $value ); 121 } 110 122 111 123 // Allow previously activated plugins to append their own options. -
trunk/bp-core/bp-core-update.php
r7860 r7904 233 233 234 234 // 2.0 235 if ( $raw_db_version < 78 59) {235 if ( $raw_db_version < 7892 ) { 236 236 bp_update_to_2_0(); 237 237 } … … 338 338 * - Ensure that the activity tables are installed, for last_activity storage. 339 339 * - Migrate last_activity data from usermeta to activity table 340 * - Add values for all BuddyPress options to the options table 340 341 */ 341 342 function bp_update_to_2_0() { 342 343 global $wpdb; 343 344 344 / / Install activity tables345 /** Install activity tables for 'last_activity' **********************/ 345 346 bp_core_install_activity_streams(); 346 347 347 348 $bp = buddypress(); 348 349 349 // Migrate data 350 /** Migrate 'last_activity' data *************************************/ 351 350 352 // The "NOT IN" clause prevents duplicates 351 353 $sql = "INSERT INTO {$bp->members->table_name_last_activity} (`user_id`, `component`, `type`, `date_recorded` ) ( … … 363 365 364 366 $wpdb->query( $sql ); 367 368 /** Add BP options to the options table ******************************/ 369 bp_add_options(); 365 370 } 366 371 … … 405 410 // Force refresh theme roots. 406 411 delete_site_transient( 'theme_roots' ); 412 413 // Add options 414 bp_add_options(); 407 415 408 416 // Use as of (1.6) -
trunk/bp-loader.php
r7860 r7904 305 305 306 306 $this->version = '2.0-alpha-7752'; 307 $this->db_version = 78 59;307 $this->db_version = 7892; 308 308 309 309 /** Loading ***************************************************/
Note: See TracChangeset
for help on using the changeset viewer.