Opened 14 months ago
Closed 13 months ago
#9089 closed defect (bug) (fixed)
Only run 'bp_parse_query' hook once during AJAX
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 12.3.0 | Priority: | normal |
Severity: | normal | Version: | 12.0.0 |
Component: | Core | Keywords: | has-patch commit |
Cc: |
Description (last modified by )
Ran into an issue in BuddyPress 12 where the 'bp_parse_query'
hook was running more than once during AJAX requests.
The issue is in the bp_parse_ajax_referer_query()
function. If another piece of code runs a WP_Query
on a BuddyPress AJAX action, then the 'parse_query'
hook will run, which would lead to the 'bp_parse_query'
hook firing again.
I've attached a fix so we will remove subsequent calls to bp_parse_ajax_referer_query()
.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Hi @r-a-y
Thanks a lot for your catch & patch 💪. @slaffik I wonder if what describes & fixes r-a-y is also fixing the issue you told me about with the Query Monitor plugin.