[wp-meta] [Making WordPress.org] #1870: Wrong topic count on bbPress 2.x profile
Making WordPress.org
noreply at wordpress.org
Mon Aug 8 18:11:53 UTC 2016
#1870: Wrong topic count on bbPress 2.x profile
----------------------------------+------------------------
Reporter: SergeyBiryukov | Owner:
Type: defect | Status: closed
Priority: normal | Milestone:
Component: International Forums | Resolution: duplicate
Keywords: |
----------------------------------+------------------------
Changes (by jmdodd):
* status: new => closed
* resolution: => duplicate
Comment:
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.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1870#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list