Ticket #7969: 7969.01.patch
| File 7969.01.patch, 1.1 KB (added by , 8 years ago) |
|---|
-
src/bp-templates/bp-nouveau/buddypress-functions.php
437 437 */ 438 438 $supported_objects = (array) apply_filters( 'bp_nouveau_supported_components', bp_core_get_packaged_component_ids() ); 439 439 $object_nonces = array(); 440 $group_object_flag = false; 440 441 441 442 foreach ( $supported_objects as $key_object => $object ) { 442 443 if ( ! bp_is_active( $object ) || 'forums' === $object ) { … … 445 446 } 446 447 447 448 if ( 'groups' === $object ) { 448 $ supported_objects = array_merge( $supported_objects, array( 'group_members', 'group_requests' ) );449 $group_object_flag = true; 449 450 } 450 451 451 452 $object_nonces[ $object ] = wp_create_nonce( 'bp_nouveau_' . $object ); 452 453 } 453 454 455 // Groups require some additional objects. 456 if ( $group_object_flag ) { 457 $supported_objects = array_merge( $supported_objects, array( 'group_members', 'group_requests' ) ); 458 } 459 454 460 // Add components & nonces 455 461 $params['objects'] = $supported_objects; 456 462 $params['nonces'] = $object_nonces;
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)