Skip to:
Content

BuddyPress.org

Ticket #5385: 5385.patch

File 5385.patch, 2.7 KB (added by boonebgorges, 11 years ago)
  • bp-core/bp-core-options.php

    diff --git bp-core/bp-core-options.php bp-core/bp-core-options.php
    index 8225fa2..bce1c7c 100644
    function bp_get_default_options() { 
    7979                /** BuddyBar **********************************************************/
    8080
    8181                // 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,
    8394        );
    8495
    8596        return apply_filters( 'bp_get_default_options', $options );
    function bp_get_default_options() { 
    8899/**
    89100 * Add default options when BuddyPress is first activated.
    90101 *
    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.
    95104 *
    96105 * @since BuddyPress (1.6.0)
    97106 *
  • bp-core/bp-core-update.php

    diff --git bp-core/bp-core-update.php bp-core/bp-core-update.php
    index 54d9d1e..ac052cf 100644
    function bp_version_updater() { 
    230230                if ( $raw_db_version < 7731 ) {
    231231                        bp_update_to_1_9_2();
    232232                }
     233
     234                if ( $raw_db_version < 7820 ) {
     235                        bp_update_to_2_0();
     236                }
    233237        }
    234238
    235239        /** All done! *************************************************************/
    function bp_update_to_1_9_2() { 
    328332}
    329333
    330334/**
     335 * Perform database updates for BP 2.0.
     336 *
     337 * @since BuddyPress (2.0.0)
     338 */
     339function bp_update_to_2_0() {
     340        bp_add_options();
     341}
     342
     343/**
    331344 * Redirect user to BP's What's New page on first page load after activation.
    332345 *
    333346 * @since BuddyPress (1.7.0)
    function bp_activation() { 
    368381        // Force refresh theme roots.
    369382        delete_site_transient( 'theme_roots' );
    370383
     384        // Add options
     385        bp_add_options();
     386
    371387        // Use as of (1.6)
    372388        do_action( 'bp_activation' );
    373389
  • bp-loader.php

    diff --git bp-loader.php bp-loader.php
    index cc09478..d00140a 100644
    class BuddyPress { 
    304304                /** Versions **************************************************/
    305305
    306306                $this->version    = '2.0-alpha-7752';
    307                 $this->db_version = 7731;
     307                $this->db_version = 7820;
    308308
    309309                /** Loading ***************************************************/
    310310