Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/01/2013 03:43:24 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Remove deprecated subforum prevention code. Though it's not directly supported, preventing it isn't necessary either. See #2191.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/extend/buddypress/group.php

    r4733 r4746  
    113113        // Map group forum activity items to groups
    114114        add_filter( 'bbp_before_record_activity_parse_args', array( $this, 'map_activity_to_group' ) );
    115 
    116         // No subforums yet, so suppress them for now
    117         add_filter( 'bbp_get_forum_subforum_count_int', array( $this, 'no_subforums_yet' ) );
    118115
    119116        /** Caps **************************************************************/
     
    607604                            $forum = $forums[0];
    608605
    609                             // Suppress subforums for now
    610                             add_filter( 'bbp_get_forum_subforum_count', '__return_false' );
    611 
    612606                            // Set up forum data
    613607                            bbpress()->current_forum_id = $forum->ID;
     
    617611
    618612                            <?php bbp_get_template_part( 'content', 'single-forum' ); ?>
    619 
    620                             <?php
    621 
    622                             // Remove the subforum suppression filter
    623                             remove_filter( 'bbp_get_forum_subforum_count', '__return_false' );
    624 
    625                             ?>
    626613
    627614                        <?php else : ?>
Note: See TracChangeset for help on using the changeset viewer.