Skip to:
Content

bbPress.org

Ticket #2571: tools.php.patch

File tools.php.patch, 814 bytes (added by netweb, 10 years ago)
  • wp-content/plugins/bbpress-org/tools.php

     
    2020
    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();
    2723
     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 );
     31
    2832                // Redirect without _GET
    2933                wp_safe_redirect( bbp_get_topic_permalink() );
    3034                die;