Opened 3 months ago
Last modified 3 months ago
#3655 new defect (bug)
bbPress conditionals not working correctly on BuddyPress group forum pages since BP 12+
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 2.6.11 |
| Component: | Extend - BuddyPress | Keywords: | has-patch |
| Cc: | emaralive |
Description
When BuddyPress 12+ is activated and when the new rewrites parser is enabled in BuddyPress, some bbPress conditionals such as bbp_is_single_forum() are not working correctly due to load order.
The following code block runs too early: https://github.com/bbpress/bbPress/blob/1a8a8a0730e17c3f99f2b8bfff35a64dd9a3ee8b/src/includes/extend/buddypress/groups.php#L141-L158
When the new rewrites parser is in use, this code block needs to run on the 'bp_parse_query' block. See attached patch.
Disregard the first patch! Created it against wrong branch.