Opened 3 years ago
Closed 3 years ago
#9089 closed defect (bug) (fixed)
Only run 'bp_parse_query' hook once during AJAX
| Reported by: | r-a-y | Owned by: | imath |
|---|---|---|---|
| Priority: | normal | Milestone: | 12.3.0 |
| Component: | Core | Version: | 12.0.0 |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.