Opened 8 years ago
Closed 7 years ago
#1870 closed defect (bug) (fixed)
Wrong topic count on bbPress 2.x profile
Reported by: | SergeyBiryukov | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Support Forums | Keywords: | close |
Cc: |
Description
According to https://ru.wordpress.org/support/users/sergeybiryukov/topics, I've started 25 topics, but https://ru.wordpress.org/support/users/sergeybiryukov/ says I've only started one.
Change History (9)
#2
@
8 years ago
- Resolution set to duplicate
- Status changed from new to closed
Most (all but one) of your topics are closed.
The SQL for the topic count bbp_get_user_topic_count_raw()
(which generates the number 1 in this case) includes the following condition:
WHERE ( ( post_type = 'topic' AND ( post_status = 'publish' OR post_status = 'private' ) ) ) AND post_author = {omitted}
However, this does not take into account the customized bbPress closed status, where the post has post_status "closed", but is still visible to the public via the _bbp_status postmeta value of "publish".
This was reported in #bbpress2233 and is a known issue.
#3
@
8 years ago
I've created #bbPress2978 as a workaround for this, it only adds closed topic count to the topic count, for now.
This ticket was mentioned in Slack in #forums by sergey. View the logs.
8 years ago
#7
@
8 years ago
- Resolution duplicate deleted
- Status changed from closed to reopened
Reopening, I'll commit the bbPress fix in #bbPress2978 in the coming days that will then resolve this
#8
@
8 years ago
- Keywords close added
Fixed in bbpress:changeset:6114, will be deployed in the next bbPress to meta deploy update
Running bbPress' Recount topics for each user should fix this up in a flash