Changeset 8830
- Timestamp:
- 08/13/2014 07:56:31 PM (10 years ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-functions.php
r8707 r8830 337 337 338 338 /** Directory *****************************************************************/ 339 340 /** 341 * Returns an array of core components. 342 * 343 * @since BuddyPress (2.1.0) 344 * 345 * @return array 346 */ 347 function bp_core_get_components() { 348 return array( 349 'activity', 350 'members', 351 'groups', 352 'blogs', 353 'xprofile', 354 'friends', 355 'messages', 356 'settings', 357 'notifications', 358 'forums', 359 ); 360 } 339 361 340 362 /** -
trunk/src/bp-core/bp-core-template.php
r8705 r8830 1538 1538 */ 1539 1539 function bp_is_current_component_core() { 1540 $retval = false; 1541 $active_components = apply_filters( 'bp_active_components', bp_get_option( 'bp-active-components' ) ); 1542 1543 foreach ( array_keys( $active_components ) as $active_component ) { 1540 $retval = false; 1541 1542 foreach ( bp_core_get_components() as $active_component ) { 1544 1543 if ( bp_is_current_component( $active_component ) ) { 1545 1544 $retval = true;
Note: See TracChangeset
for help on using the changeset viewer.