Opened 10 years ago
Closed 7 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 |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | 2.1 |
Component: | Extend - BuddyPress | 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)
Change History (6)
#2
@
8 years ago
- Summary changed from BuddyPress: Do not attempt to run 'redirect_canonical' hook when on a BP group RSS feed to BuddyPress: Do not attempt to run 'redirect_canonical' hook when on a RSS feed
Note: See
TracTickets for help on using
tickets.
Bug also occurs on BP user activity RSS feeds.
Decided to go with an
is_feed()
conditional instead, which catches both BP user activity and group RSS feeds.