Skip to:
Content

bbPress.org

Opened 12 years ago

Closed 10 years ago

#2745 closed defect (bug) (fixed)

BuddyPress: Do not attempt to run 'redirect_canonical' hook when on a RSS feed

Reported by: r-a-y Owned by: johnjamesjacoby
Priority: normal Milestone: 2.6
Component: Extend - BuddyPress Version: 2.1
Severity: normal Keywords: has-patch commit
Cc:

Description

On BBP_Forums_Group_Extension::redirect_canonical(), the bbp_is_single_topic() function is used. This function uses is_singular(), which throws a notice when on a BP group RSS feed. (See ​https://buddypress.trac.wordpress.org/ticket/6067.)

Attached patch is against trunk and bails out of BBP_Forums_Group_Extension::redirect_canonical() when on a BP group RSS feed. This fixes the notices from being shown.

Attachments (2)

2745.01.patch​ (488 bytes ) - added by r-a-y 12 years ago.
2745.02.patch​ (447 bytes ) - added by r-a-y 10 years ago.

Download all attachments as: .zip

Change History (6)

@r-a-y
12 years ago

#1 @netweb
12 years ago

  • Milestone Awaiting Review → Under Consideration

@r-a-y
10 years ago

#2 @r-a-y
10 years ago

  • Summary BuddyPress: Do not attempt to run 'redirect_canonical' hook when on a BP group RSS feed → BuddyPress: Do not attempt to run 'redirect_canonical' hook when on a RSS feed

Bug also occurs on BP user activity RSS feeds.

Decides to go with an is_feed() conditional instead, which catches both BP user activity and group RSS feeds.

Version 0, edited 10 years ago by r-a-y (next)

#3 @netweb
10 years ago

  • Keywords commit added
  • Milestone Under Consideration → 2.6
  • Owner set to johnjamesjacoby
  • Version 2.5.4 → 2.1

#4 @johnjamesjacoby
10 years ago

  • Resolution → fixed
  • Status new → closed

In 6383:

BuddyPress: Bail if in a feed.

Props r-a-y, netweb. Fixes #2745.

Note: See TracTickets for help on using tickets.