Opened 4 years ago
Closed 4 years ago
#8473 closed defect (bug) (fixed)
Unscoped bp_nouveau_ajax_querystring on single activity page is affecting other loops
Reported by: | sbrajesh | Owned by: | imath |
---|---|---|---|
Milestone: | 8.0.0 | Priority: | normal |
Severity: | normal | Version: | 7.3.0 |
Component: | Core | Keywords: | has-patch |
Cc: | sbrajesh |
Description
Hi,
The function bp_nouveau_ajax_querystring which filters on 'bp_ajax_querystring' has a part of code like this
// Single activity. if ( bp_is_single_activity() ) { $qs = array( 'display_comments=threaded', 'show_hidden=true', 'include=' . bp_current_action(), ); }
Since it does not check the $object for activity type, It is affecting all other loops on the single activity page. I have a theme with sidebar for single activity page and the members loop is getting affected(include=activityid)
If we update the code and add test for object type, that will fix the issue. Please find the patch attached.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Patch looks good! Thanks for your contribution 👌. We’ll have it fixed asap.