Skip to:
Content

bbPress.org

Changeset 4973


Ignore:
Timestamp:
05/29/2013 02:42:42 AM (8 years ago)
Author:
johnjamesjacoby
Message:

Add bbp_is_single_topic() check to topic pagination count, before using threaded count output. Fixes issue where threaded output would incorrectly appear on user profile replies. See #2340.

File:
1 edited

Legend:

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

    r4962 r4973  
    22482248
    22492249        // We are threading replies
    2250         if ( bbp_thread_replies() ) {
     2250        if ( bbp_thread_replies() && bbp_is_single_topic() ) {
     2251            return;
    22512252            $walker  = new BBP_Walker_Reply;
    22522253            $threads = (int) $walker->get_number_of_root_elements( $bbp->reply_query->posts );
Note: See TracChangeset for help on using the changeset viewer.