Skip to:
Content

bbPress.org

Changeset 7331


Ignore:
Timestamp:
07/01/2025 04:32:19 PM (9 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 branches/2.6, for 2.6.14.

Fixes #3611.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/src/includes/forums/template.php

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