Skip to:
Content

BuddyPress.org

Changeset 7904 for trunk/bp-loader.php


Ignore:
Timestamp:
02/17/2014 12:42:05 AM (11 years ago)
Author:
boonebgorges
Message:

Install default options at installation time and at upgrade to 2.0

When BuddyPress is installed, all basic config options should be saved to the
database, even when the setting is empty (0). This ensures that the options
will be pre-fetched by the first call to wp_load_alloptions() and stored in the
non-persistent cache, removing the necessity to make additional failed queries
to the wp_options table.

This changeset also includes logic to add missing default options to existing
default installations when upgrading to 2.0.

Fixes #5385

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-loader.php

    r7860 r7904  
    305305
    306306        $this->version    = '2.0-alpha-7752';
    307         $this->db_version = 7859;
     307        $this->db_version = 7892;
    308308
    309309        /** Loading ***************************************************/
Note: See TracChangeset for help on using the changeset viewer.