Skip to:
Content

BuddyPress.org

Ticket #2631: 2631.002.patch

File 2631.002.patch, 2.2 KB (added by r-a-y, 15 years ago)

Refreshed patch; also trims some trailing whitespace

  • bp-core/bp-core-admin.php

     
    292292        global $bp_wizard;
    293293
    294294        $active_components = apply_filters( 'bp_active_components', get_site_option( 'bp-active-components' ) );
    295        
     295
    296296        // An array of strings looped over to create component setup markup
    297297        $optional_components = array(
    298298                'xprofile' => array(
     
    323323                        'title'       => __( 'Discussion Forums', 'buddypress' ),
    324324                        'description' => __( 'Full powered discussion forums built directly into groups allow for more conventional in-depth conversations. NOTE: This will require an extra (but easy) setup step.', 'buddypress' )
    325325                )
    326         );
    327        
    328         if ( is_multisite() ) {
    329                 $optional_components['blogs'] = array(
     326
     327                'blogs' => array(
    330328                        'title'       => __( 'Blog Tracking', 'buddypress' ),
    331329                        'description' => __( 'Track new blogs, new posts and new comments across your entire blog network.', 'buddypress' )
    332                 );
    333         }
     330                )
     331        );
    334332
    335333        // On new install, set all components to be active by default
    336334        if ( !empty( $bp_wizard ) && 'install' == $bp_wizard->setup_type && empty( $active_components ) )
    337335                $active_components = $optional_components;
    338336
    339337        ?>
    340        
     338
    341339        <?php /* The setup wizard uses different, more descriptive text here */ ?>
    342340        <?php if ( empty( $bp_wizard ) ) : ?>
    343341
    344342                <h3><?php _e( 'Active Components', 'buddypress' ); ?></h3>
    345                                
     343
    346344                <p><?php _e( 'Choose which BuddyPress components you would like to use.', 'buddypress' ); ?></p>
    347345
    348346        <?php endif ?>
    349        
     347
    350348        <table class="form-table">
    351349                <tbody>
    352350
     
    398396                'groups'   => __( 'Groups Directory',   'buddypress' ),
    399397                'forums'   => __( 'Forums Directory',   'buddypress' ),
    400398        );
    401        
     399
    402400        if ( is_multisite() )
    403401                $directory_pages['blogs'] = __( "Blogs Directory", 'buddypress' ); ?>
    404        
     402
    405403        <h3><?php _e( 'Directory Pages', 'buddypress' ); ?></h3>
    406        
     404
    407405        <p><?php _e( 'Choose a WordPress Page to associate with each BuddyPress component directory. Setting to "None" will render that page inaccessible.', 'buddypress' ); ?></p>
    408406
    409407        <table class="form-table">
     
    436434
    437435                </tbody>
    438436        </table>
    439        
     437
    440438        <?php
    441439
    442440        // Static pages