Opened 10 years ago
Closed 10 years ago
#5873 closed defect (bug) (fixed)
bp_core_get_packaged_component_ids() conflict with bbPress
Reported by: | r-a-y | Owned by: | djpaul |
---|---|---|---|
Milestone: | 2.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | has-patch |
Cc: |
Description
If you enable the bbPress plugin and navigate to a user's "Forums" page, you'll notice that the subnav is missing (Topics Started, Replies Created, Favorites, Subscriptions).
The issue is the addition of the bp_core_get_packaged_component_ids()
function, which is used in bp_is_current_component_core()
and then used in the /members/single/plugins.php
template for subnav rendering checks.
The 'forums' ID references the legacy forums component. However, the 'forums'
ID is also used by the bbPress plugin when registering its BP component.
Attached patch checks to see if the legacy forums component is enabled using class_exists()
. If it is enabled, we add the 'forums' ID back in.
Attachments (1)
Change History (7)
#2
@
10 years ago
You're right. bp_is_active( 'forums' )
does work.
For some reason, I thought bbPress was registering itself as an active component in BP, but it's not.
In BP Skeleton Component, we've been telling plugin devs to register themselves into the $bp->active_components array, but bbPress doesn't do this.
I'm okay with going with the bp_is_active()
check, but the class check is more accurate.
#3
@
10 years ago
Perhaps new bbPress doesn't do that for compatibility with this kind of code in BuddyPress; that kind of makes sense. I agree with your class check in case new bbPress ever changes in the future.
#5
@
10 years ago
Hi :)
From #5864 I would also report that on the user replies page, the reply button in the "bbp-reply-header" redirect to a wrong BuddyPress page instead of the correct bbPress page.
Instead of:
Can you explain why
bp_is_active( 'forums' )
wouldn't work here?