Skip to:
Content

bbPress.org

Opened 8 years ago

Closed 7 years ago

#2978 closed defect (bug) (fixed)

Include users closed topic counts in `bbp_get_user_topic_count_raw()`

Reported by: netweb's profile netweb Owned by: netweb's profile netweb
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: Component - Users 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

Attachments (1)

2978.diff (2.0 KB) - added by netweb 8 years ago.

Download all attachments as: .zip

Change History (3)

@netweb
8 years ago

#1 @netweb
8 years ago

  • Keywords commit added; 2nd-opinion removed
  • Milestone changed from Under Consideration to 2.6

Will commit this in the next couple of days

#2 @netweb
7 years ago

  • Owner set to netweb
  • Resolution set to fixed
  • Status changed from new to closed

In 6114:

Users: Include users closed topic counts in bbp_get_user_topic_count_raw()

This changeset works around an issue where the lack of custom post statuses support upstream in #WP12706 prevents us from including users closed topics counts in a users raw topic count. See also #meta1870

Props netweb.
Fixes #2978.

Note: See TracTickets for help on using tickets.