Skip to:
Content

bbPress.org

Changeset 7330


Ignore:
Timestamp:
07/01/2025 04:31:39 PM (10 months ago)
Author:
johnjamesjacoby
Message:

Forums: fix meta-key typo in bbp_get_forum_topic_count_hidden()

This change replaces _bbp_topic_reply_count_hidden with _bbp_total_topic_count_hidden which is the intended name of the meta-key.

Props sirlouen.

In trunk, for 2.7.

Fixes #3611.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/forums/template.php

    r7276 r7330  
    13571357    function bbp_get_forum_topic_count_hidden( $forum_id = 0, $total_count = true, $integer = null ) {
    13581358        $forum_id = bbp_get_forum_id( $forum_id );
    1359         $meta_key = empty( $total_count ) ? '_bbp_topic_count_hidden' : '_bbp_topic_reply_count_hidden';
     1359        $meta_key = empty( $total_count ) ? '_bbp_topic_count_hidden' : '_bbp_total_topic_count_hidden';
    13601360        $topics   = (int) get_post_meta( $forum_id, $meta_key, true );
    13611361        $filter   = ( true === $integer )
Note: See TracChangeset for help on using the changeset viewer.