Changeset 3631 for trunk/bp-core/bp-core-templatetags.php
- Timestamp:
- 12/31/2010 05:49:36 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-templatetags.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-templatetags.php
r3627 r3631 985 985 * Only show the search form if there are available objects to search for. 986 986 * 987 * @global array $bp988 987 * @uses function_exists 989 988 * @uses is_multisite() … … 991 990 */ 992 991 function bp_search_form_enabled() { 993 global $bp;994 995 992 if ( bp_is_active( 'xprofile' ) 996 993 || bp_is_active( 'groups' ) 997 994 || ( bp_is_active( 'blogs' ) && is_multisite() ) 998 || ( function_exists( 'bp_forums_setup' ) && !(int)$bp->site_options['bp-disable-forum-directory'])999 ) {995 || ( bp_is_active( 'forums' ) && !bp_forum_directory_is_disabled() ) 996 ) { 1000 997 $search_enabled = true; 1001 998 } else { … … 1030 1027 $options['groups'] = __( 'Groups', 'buddypress' ); 1031 1028 1032 if ( function_exists( 'bp_forums_is_installed_correctly' ) && bp_forums_is_installed_correctly() && !isset( $bp->site_options['bp-disable-forum-directory']) )1029 if ( bp_is_active( 'forums' ) && bp_forums_is_installed_correctly() && !bp_forum_directory_is_disabled() ) 1033 1030 $options['forums'] = __( 'Forums', 'buddypress' ); 1034 1031
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)