Opened 15 years ago
Last modified 13 years ago
#1183 new defect (bug)
function bb_latest_topics_pages doesn't obey $bb_db_override
Reported by: | _ck_ | Owned by: | |
---|---|---|---|
Milestone: | Future Release (Legacy) | Priority: | normal |
Severity: | normal | Version: | |
Component: | Back-end | Keywords: | has-patch blessed |
Cc: |
Description
When $bb_db_override is true, function bb_latest_topics_pages calculated the topic pages on it's own anyway, with it's own query, that doesn't even obey filters.
I propose when override is in effect, it looks at the old 0.9 bbpress global value $total
which holds the total count.
(it's a huge waste in the first place to be re-doing that query when it's already calculated in the main query for the latest-discussions call. You aren't even obeying any filters that are active)
Attachments (1)
Change History (10)
Note: See
TracTickets for help on using
tickets.
just added a $bb_db_override check