Skip to:
Content

bbPress.org

Changeset 2981


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.

Location:
branches/plugin/bbp-includes
Files:
3 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
  • branches/plugin/bbp-includes/bbp-topic-functions.php

    r2976 r2981  
    747747 * @uses bbp_update_forum_topic_count() To update the forum topic counts
    748748 * @uses bbp_update_forum_reply_count() To update the forum reply counts
    749  * @uses bbp_update_forum_voice_count() To update the forum voice counts
    750749 * @uses bbp_update_topic_reply_count() To update the topic reply counts
    751750 * @uses bbp_update_topic_voice_count() To update the topic voice counts
     
    763762    // Forum Reply Counts
    764763    bbp_update_forum_reply_count( $source_topic_forum_id );
    765     // bbp_update_forum_reply_count( $destination_topic_id  );
    766 
    767     // Forum Voice Counts
    768     bbp_update_forum_voice_count( $source_topic_forum_id );
    769     bbp_update_forum_voice_count( $destination_topic_id  );
    770764
    771765    // Topic Reply Counts
     
    963957 * @uses bbp_update_forum_topic_count() To update the forum topic counts
    964958 * @uses bbp_update_forum_reply_count() To update the forum reply counts
    965  * @uses bbp_update_forum_voice_count() To update the forum voice counts
    966959 * @uses bbp_update_topic_reply_count() To update the topic reply counts
    967960 * @uses bbp_update_topic_voice_count() To update the topic voice counts
     
    980973    // bbp_update_forum_reply_count( $source_topic_id      );
    981974    bbp_update_forum_reply_count( $destination_topic_id );
    982 
    983     // Forum Voice Counts
    984     bbp_update_forum_voice_count( $source_topic_id      );
    985     bbp_update_forum_voice_count( $destination_topic_id );
    986975
    987976    // Topic Reply Counts
  • branches/plugin/bbp-includes/bbp-update.php

    r2970 r2981  
    5757
    5858        // _bbp_total_voice_count
    59         $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->postmeta} SET meta_key = '_bbp_voice_count' WHERE meta_key = '_bbp_forum_voice_count'" ) );
    6059        $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->postmeta} SET meta_key = '_bbp_voice_count' WHERE meta_key = '_bbp_topic_voice_count'" ) );
    6160
Note: See TracChangeset for help on using the changeset viewer.