Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/09/2013 06:20:58 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Fix bug in bbp_get_single_topic_description() causing some conditions to never be executed. Use bbp_get_topic_last_reply_id() instead of bbp_get_topic_last_active_id() since the $topic_id is used as the last active ID if no replies exist. Fixes #2289.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/topics/template-tags.php

    r4825 r4834  
    29962996
    29972997        // Topic has replies
    2998         $last_reply = bbp_get_topic_last_active_id( $topic_id );
     2998        $last_reply = bbp_get_topic_last_reply_id( $topic_id );
    29992999        if ( !empty( $last_reply ) ) {
    30003000            $last_updated_by = bbp_get_author_link( array( 'post_id' => $last_reply, 'size' => $r['size'] ) );
Note: See TracChangeset for help on using the changeset viewer.