Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/includes/forums/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ function bbp_forum_topic_count_hidden( $forum_id = 0, $total_count = true, $inte
*/
function bbp_get_forum_topic_count_hidden( $forum_id = 0, $total_count = true, $integer = null ) {
$forum_id = bbp_get_forum_id( $forum_id );
$meta_key = empty( $total_count ) ? '_bbp_topic_count_hidden' : '_bbp_topic_reply_count_hidden';
$meta_key = ( ! $total_count ) ? '_bbp_topic_count_hidden' : '_bbp_total_topic_count_hidden';
$topics = (int) get_post_meta( $forum_id, $meta_key, true );
$filter = ( true === $integer )
? 'bbp_get_forum_topic_count_hidden_int'
Expand Down