Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/04/2011 02:07:08 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Introduce _has_directory() functions for forums, groups, members, and activity components. This replaces the need for enabling/disabling the forum directory, since if it is not set it does not exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/functions.php

    r4580 r4596  
    553553        'title_li'   => ''
    554554    );
    555 
    556     if ( ( !bp_is_active( 'forums' ) || bp_forum_directory_is_disabled() ) && !empty( $bp->pages->forums->id ) ) {
    557         if ( !empty( $pages_args['exclude'] ) )
    558                 $pages_args['exclude'] .= ',';
    559 
    560         $pages_args['exclude'] .= $bp->pages->forums->id;
    561     }
    562 
    563555    $menu = wp_page_menu( $pages_args );
    564556    $menu = str_replace( array( '<div class="menu"><ul>', '</ul></div>' ), array( '<ul id="nav">', '</ul><!-- #nav -->' ), $menu );
Note: See TracChangeset for help on using the changeset viewer.