Skip to:
Content

BuddyPress.org

Ticket #4730: blogs-active.patch

File blogs-active.patch, 990 bytes (added by sbrajesh, 13 years ago)
  • bp-core/admin/bp-core-components.php

     
    108108                'forums'   => array(
    109109                        'title'       => __( 'Group Forums (Legacy)', 'buddypress' ),
    110110                        'description' => __( 'Group forums allow for focused, bulletin-board style conversations.', 'buddypress' )
    111                 ),
    112                 'blogs'    => array(
     111                )
     112               
     113        );
     114        //if it is a multisite install, only then include the blogs component
     115        if(is_multisite())
     116            $optional_components['blogs'] = array(
    113117                        'title'       => __( 'Site Tracking', 'buddypress' ),
    114118                        'description' => __( 'Record activity for new posts and comments from your site.', 'buddypress' )
    115                 )
    116         );
    117 
     119                );
     120   
    118121        // Don't show Forums component in optional components if it's disabled
    119122        if ( ! bp_is_active( 'forums' ) ) {
    120123                unset( $optional_components['forums'] );