Skip to:
Content

bbPress.org

Changeset 3254


Ignore:
Timestamp:
05/28/2011 12:51:58 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Add bbp_is_forum_archive() check to bbp_has_topics() to prevent $in_forum from being set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-topic-template.php

    r3251 r3254  
    7474
    7575    // Are we in a forum and looking to do a forum only query?
    76     $in_forum = (bool) ( bbp_is_forum() && !bbp_is_query_name( 'bbp_widget' ) );
     76    $in_forum = (bool) ( bbp_is_forum() && !bbp_is_forum_archive() && !bbp_is_query_name( 'bbp_widget' ) );
    7777
    7878    // What are the default allowed statuses (based on user caps)
Note: See TracChangeset for help on using the changeset viewer.