Opened 10 years ago
Closed 10 years ago
#2978 closed defect (bug) (fixed)
Include users closed topic counts in `bbp_get_user_topic_count_raw()`
| Reported by: | netweb | Owned by: | netweb |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.6 |
| Component: | Component - Users | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: |
Description
Extracted from #2233
Currently bbPress bbp_get_user_topic_count_raw() functions uses WordPress' get_posts_by_author_sql() function to get users raw topic count. This count currently doesn't include bbPress custom post statuses due to upstream issue #WP12706
By adding a new function bbp_get_user_closed_topic_count() we can get around one of these status issues and add that count to the bbp_get_user_topic_count_raw() count.
This would also fix the main issue in #meta1870
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Will commit this in the next couple of days