Ticket #2631: 2631.002.patch
| File 2631.002.patch, 2.2 KB (added by , 15 years ago) |
|---|
-
bp-core/bp-core-admin.php
292 292 global $bp_wizard; 293 293 294 294 $active_components = apply_filters( 'bp_active_components', get_site_option( 'bp-active-components' ) ); 295 295 296 296 // An array of strings looped over to create component setup markup 297 297 $optional_components = array( 298 298 'xprofile' => array( … … 323 323 'title' => __( 'Discussion Forums', 'buddypress' ), 324 324 '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' ) 325 325 ) 326 ); 327 328 if ( is_multisite() ) { 329 $optional_components['blogs'] = array( 326 327 'blogs' => array( 330 328 'title' => __( 'Blog Tracking', 'buddypress' ), 331 329 'description' => __( 'Track new blogs, new posts and new comments across your entire blog network.', 'buddypress' ) 332 ) ;333 }330 ) 331 ); 334 332 335 333 // On new install, set all components to be active by default 336 334 if ( !empty( $bp_wizard ) && 'install' == $bp_wizard->setup_type && empty( $active_components ) ) 337 335 $active_components = $optional_components; 338 336 339 337 ?> 340 338 341 339 <?php /* The setup wizard uses different, more descriptive text here */ ?> 342 340 <?php if ( empty( $bp_wizard ) ) : ?> 343 341 344 342 <h3><?php _e( 'Active Components', 'buddypress' ); ?></h3> 345 343 346 344 <p><?php _e( 'Choose which BuddyPress components you would like to use.', 'buddypress' ); ?></p> 347 345 348 346 <?php endif ?> 349 347 350 348 <table class="form-table"> 351 349 <tbody> 352 350 … … 398 396 'groups' => __( 'Groups Directory', 'buddypress' ), 399 397 'forums' => __( 'Forums Directory', 'buddypress' ), 400 398 ); 401 399 402 400 if ( is_multisite() ) 403 401 $directory_pages['blogs'] = __( "Blogs Directory", 'buddypress' ); ?> 404 402 405 403 <h3><?php _e( 'Directory Pages', 'buddypress' ); ?></h3> 406 404 407 405 <p><?php _e( 'Choose a WordPress Page to associate with each BuddyPress component directory. Setting to "None" will render that page inaccessible.', 'buddypress' ); ?></p> 408 406 409 407 <table class="form-table"> … … 436 434 437 435 </tbody> 438 436 </table> 439 437 440 438 <?php 441 439 442 440 // Static pages