Making WordPress.org

Changeset 479


Ignore:
Timestamp:
03/26/2014 04:28:56 PM (10 years ago)
Author:
johnjamesjacoby
Message:

bbPress.org: Get $topic_id in bbporg_recount_current_thing() and pass it into recount functions. Fixes bug where voice counts were not being updated. Props netweb.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/plugins/bbpress-org/tools.php

    r447 r479  
    2121    // Refresh topic data
    2222    if ( bbp_is_single_topic() ) {
    23         bbp_update_topic_voice_count();
    24         bbp_update_topic_last_reply_id();
    25         bbp_update_topic_last_active_id();
    26         bbp_update_topic_last_active_time();
     23
     24        // Get the topic ID
     25        $topic_id = bbp_get_topic_id();
     26
     27        bbp_update_topic_voice_count( $topic_id );
     28        bbp_update_topic_last_reply_id( $topic_id );
     29        bbp_update_topic_last_active_id( $topic_id );
     30        bbp_update_topic_last_active_time( $topic_id );
    2731
    2832        // Redirect without _GET
Note: See TracChangeset for help on using the changeset viewer.