Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/02/2016 10:24:30 AM (5 years ago)
Author:
netweb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/users/functions/counts.php

    r5919 r6114  
    183183        $count = bbp_get_user_topic_count_raw( $u );
    184184        $this->assertSame( 6, $count );
     185
     186        $t = $this->factory->topic->create( array(
     187            'post_author' => $u,
     188        ) );
     189
     190        bbp_close_topic( $t );
     191
     192        $count = bbp_get_user_topic_count_raw( $u );
     193        $this->assertSame( 7, $count );
    185194    }
    186195
Note: See TracChangeset for help on using the changeset viewer.