Skip to:
Content

Opened 3 years ago

Closed 2 years ago

#2978 closed defect (fixed)

Include users closed topic counts in `bbp_get_user_topic_count_raw()`

Reported by: netweb Owned by: 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 3 years ago.

Download all attachments as: .zip

Change History (3)

@netweb
3 years ago

#1 @netweb
2 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
2 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.