Skip to:
Content

bbPress.org

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: r-a-y's profile r-a-y 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.

Attachments (2)

3655.01.patch (191.2 KB) - added by r-a-y 3 months ago.
3655.01.2.patch (1.2 KB) - added by r-a-y 3 months ago.

Download all attachments as: .zip

Change History (4)

@r-a-y
3 months ago

@r-a-y
3 months ago

#1 @r-a-y
3 months ago

Disregard the first patch! Created it against wrong branch.

#2 @emaralive
3 months ago

  • Cc emaralive added
Note: See TracTickets for help on using tickets.