diff --git bp-core/bp-core-options.php bp-core/bp-core-options.php
index 8225fa2..bce1c7c 100644
|
|
function bp_get_default_options() { |
79 | 79 | /** BuddyBar **********************************************************/ |
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, |
83 | 94 | ); |
84 | 95 | |
85 | 96 | return apply_filters( 'bp_get_default_options', $options ); |
… |
… |
function bp_get_default_options() { |
88 | 99 | /** |
89 | 100 | * Add default options when BuddyPress is first activated. |
90 | 101 | * |
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. |
| 102 | * Only called once when BuddyPress is activated. |
| 103 | * Non-destructive, so existing settings will not be overridden. |
95 | 104 | * |
96 | 105 | * @since BuddyPress (1.6.0) |
97 | 106 | * |
diff --git bp-core/bp-core-update.php bp-core/bp-core-update.php
index 54d9d1e..ac052cf 100644
|
|
function bp_version_updater() { |
230 | 230 | if ( $raw_db_version < 7731 ) { |
231 | 231 | bp_update_to_1_9_2(); |
232 | 232 | } |
| 233 | |
| 234 | if ( $raw_db_version < 7820 ) { |
| 235 | bp_update_to_2_0(); |
| 236 | } |
233 | 237 | } |
234 | 238 | |
235 | 239 | /** All done! *************************************************************/ |
… |
… |
function bp_update_to_1_9_2() { |
328 | 332 | } |
329 | 333 | |
330 | 334 | /** |
| 335 | * Perform database updates for BP 2.0. |
| 336 | * |
| 337 | * @since BuddyPress (2.0.0) |
| 338 | */ |
| 339 | function bp_update_to_2_0() { |
| 340 | bp_add_options(); |
| 341 | } |
| 342 | |
| 343 | /** |
331 | 344 | * Redirect user to BP's What's New page on first page load after activation. |
332 | 345 | * |
333 | 346 | * @since BuddyPress (1.7.0) |
… |
… |
function bp_activation() { |
368 | 381 | // Force refresh theme roots. |
369 | 382 | delete_site_transient( 'theme_roots' ); |
370 | 383 | |
| 384 | // Add options |
| 385 | bp_add_options(); |
| 386 | |
371 | 387 | // Use as of (1.6) |
372 | 388 | do_action( 'bp_activation' ); |
373 | 389 | |
diff --git bp-loader.php bp-loader.php
index cc09478..d00140a 100644
|
|
class BuddyPress { |
304 | 304 | /** Versions **************************************************/ |
305 | 305 | |
306 | 306 | $this->version = '2.0-alpha-7752'; |
307 | | $this->db_version = 7731; |
| 307 | $this->db_version = 7820; |
308 | 308 | |
309 | 309 | /** Loading ***************************************************/ |
310 | 310 | |