Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/03/2011 07:09:48 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Remove existing references to forum_voice_count functions. Fixes #1494.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-forum-template.php

    r2972 r2981  
    11421142    function bbp_get_forum_hidden_topic_count( $forum_id = 0 ) {
    11431143        $forum_id = bbp_get_forum_id( $forum_id );
    1144         $topics  = get_post_meta( $forum_id, '_bbp_topic_count_hidden', true );
     1144        $topics   = get_post_meta( $forum_id, '_bbp_topic_count_hidden', true );
    11451145
    11461146        return apply_filters( 'bbp_get_forum_hidden_topic_count', (int) $topics, $forum_id );
    1147     }
    1148 
    1149 /**
    1150  * Output total voice count of a forum
    1151  *
    1152  * @since bbPress (r2567)
    1153  *
    1154  * @param int $forum_id Optional. Forum id
    1155  * @uses bbp_get_forum_voice_count() To get the forum voice count
    1156  */
    1157 function bbp_forum_voice_count( $forum_id = 0 ) {
    1158     echo bbp_get_forum_voice_count( $forum_id );
    1159 }
    1160     /**
    1161      * Return total voice count of a forum
    1162      *
    1163      * @since bbPress (r2567)
    1164      *
    1165      * @param int $forum_id Optional. Forum id
    1166      * @uses bbp_get_forum_id() To get the forum id
    1167      * @uses get_post_meta() To get the forum voice count
    1168      * @uses apply_filters() Calls 'bbp_get_forum_voice_count' with the
    1169      *                        voice count and forum id
    1170      * @return int Forum voice count
    1171      */
    1172     function bbp_get_forum_voice_count( $forum_id = 0 ) {
    1173         $forum_id = bbp_get_forum_id( $forum_id );
    1174         $voices   = get_post_meta( $forum_id, '_bbp_forum_voice_count', true );
    1175 
    1176         return apply_filters( 'bbp_get_forum_voice_count', (int) $voices, $forum_id );
    11771147    }
    11781148
Note: See TracChangeset for help on using the changeset viewer.