Opened 14 years ago
Closed 13 years ago
#3144 closed enhancement (fixed)
Move bp-pages to a site_option
Reported by: | boonebgorges | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 1.5 | Priority: | critical |
Severity: | Version: | 1.5 | |
Component: | Core | Keywords: | |
Cc: |
Description
Many of the problems that we are experiencing on Multisite with BP trunk have to do with bp-pages. In particular, there is perpetual confusion about where the bp-pages data is stored: when upgrading to MS, when changing your BP_ROOT_BLOG, etc. See, eg, #2446.
Much of this will go away if bp-pages data is stored instead in a site_option - so we'll always know where to look for it - which is internally keyed by blog_id.
I've attached a patch that does the trick, but I really need to have feedback on it first. For one thing, I have put in a little failsafe to make (reasonably) sure that current installations of the BP trunk will upgrade properly, but it's probably not 100%. Hopefully this is not a dealbreaker.
Please give the patch a try and let me know if it works. Thanks.
(In [4254]) Moves bp-pages data to a single site_option, an array keyed by blog_id. Fixes #3144