WordPress.org

Making WordPress.org

Opened 3 years ago

Closed 22 months ago

#1870 closed defect (fixed)

Wrong topic count on bbPress 2.x profile

Reported by: SergeyBiryukov Owned by:
Milestone: Priority: normal
Component: Support Forums Keywords: close
Cc:

Description

Change History (9)

#1 @netweb
3 years ago

Running bbPress' Recount topics for each user should fix this up in a flash

#2 @jmdodd
3 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 @netweb
3 years ago

I've created #bbPress2978 as a workaround for this, it only adds closed topic count to the topic count, for now.

#4 @SergeyBiryukov
3 years ago

  • Component changed from International Forums to Support Forums

This ticket was mentioned in Slack in #forums by sergey. View the logs.


3 years ago

#6 @netweb
3 years ago

#2067 was marked as a duplicate.

#7 @netweb
3 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 @netweb
2 years ago

  • Keywords close added

Fixed in bbpress:changeset:6114, will be deployed in the next bbPress to meta deploy update

#9 @SergeyBiryukov
22 months ago

  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed in [5629].

Note: See TracTickets for help on using tickets.