You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
performs a COUNT() query to find the number of rows that would be returned if $limits did not apply.
However, if the posts_request filter causes the query to be changed, this row count may be invalid. This is the case in bbPress, where the _bbp_has_replies_where filter alters the WHERE clause to include the original topic as well as its replies in a single query.
Instead, we could perform the row count on the query after any filters have been applied if possible.
Incoming PR to do that, but it's a little scary...