Opened 15 years ago
Closed 15 years ago
#2989 closed defect (bug) (fixed)
$bp->pages not populated on secondary sites under MS
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 1.5 | Priority: | critical |
| Severity: | Version: | ||
| Component: | Core | Keywords: | has-patch dev-feedback |
| Cc: |
Description
The problem can be traced to bp_core_get_page_names(), which gets the correct page ids from BP_ROOT_BLOG with bp_core_get_page_meta(), but then looks for those page ids in the current blog instead of the root blog. As a result, no BP link are created correctly on the secondary blog (especially evident in the admin bar).
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
2989-0.patch fixes the problem by concatenating the posts table name (for use in the query) out of $wpdb->get_blog_prefix( BP_ROOT_BLOG ) when MS is turned on. I believe that this is as lightweight a solution as is possible, but I would like some feedback before committing it.