Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/10/2009 06:34:52 PM (17 years ago)
Author:
apeatling
Message:

Added extra filtering on template loops, applies to #980 props jeffsayre.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-templatetags.php

    r1790 r1844  
    138138        return false;
    139139
    140     return $forum_template->has_topics();
     140    return apply_filters( 'bp_has_topics', $forum_template->has_topics(), &$forum_template );
    141141}
    142142
     
    600600        return false;
    601601
    602     return $topic_template->has_posts();
     602    return apply_filters( 'bp_has_topic_posts', $topic_template->has_posts(), &$topic_template );
    603603}
    604604
Note: See TracChangeset for help on using the changeset viewer.