Opened 16 years ago
Closed 16 years ago
#2989 closed defect (bug) (fixed)
$bp->pages not populated on secondary sites under MS
| Reported by: | boonebgorges | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | critical | Milestone: | 1.5 |
| Component: | Core | Version: | |
| Severity: | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.