#3750 closed defect (bug) (fixed)
bp_core_get_root_options() working incorrectly on secondary sites in MS
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 1.5.2 | Priority: | critical |
Severity: | normal | Version: | 1.5 |
Component: | Core | Keywords: | |
Cc: |
Description ¶
During the startup procedure, BP loads its options in bp_core_get_root_options(). It should be looking for the root blog options in the root blog; but instead it looks in $wpdb->options, which corresponds to the *current* blog. http://buddypress.trac.wordpress.org/browser/trunk/bp-core/bp-core-functions.php#L1055 As a result, it tries copying over necessary settings from the root blog. This is improper behavior when not in multiblog mode.
In my case, the excessive switch_to_blog()s (called by bp_update_option() http://buddypress.trac.wordpress.org/browser/trunk/bp-core/bp-core-functions.php#L1085) are causing out-of-memory errors. In any case, it will result in some options getting out of sync. Marking the ticket critical for these reasons.
Pull Requests
- Loading…
(In [5335]) Look in root blog when pulling up root options en masse in bp_core_get_root_options(). Fixes #3750