Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#2989 closed defect (bug) (fixed)

$bp->pages not populated on secondary sites under MS

Reported by: boonebgorges's profile boonebgorges Owned by: boonebgorges's profile boonebgorges
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)

2989-0.patch (1.3 KB) - added by boonebgorges 14 years ago.

Download all attachments as: .zip

Change History (3)

#1 @boonebgorges
14 years ago

  • Keywords has-patch dev-feedback added

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.

#2 @boonebgorges
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3641]) Fetches the bp_pages names and slugs from the root blog table when viewing a secondary blog. Fixes #2989

Note: See TracTickets for help on using tickets.