Changeset 10961
- Timestamp:
- 07/24/2016 03:08:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/classes/class-bp-activity-list-table.php
r10882 r10961 429 429 430 430 <?php foreach ( $activity_actions as $component => $actions ) : ?> 431 432 <optgroup label="<?php echo ucfirst( $component ); ?>"> 431 <?php 432 // Older avatar activity items use 'profile' for component. See r4273. 433 if ( $component === 'profile' ) { 434 $component = 'xprofile'; 435 } 436 437 if ( bp_is_active( $component ) ) { 438 if ( $component === 'xprofile' ) { 439 $component_name = buddypress()->profile->name; 440 } else { 441 $component_name = buddypress()->$component->name; 442 } 443 444 } else { 445 // Prevent warnings by other plugins if a component is disabled but the activity type has been registered. 446 $component_name = ucfirst( $component ); 447 } 448 ?> 449 450 <optgroup label="<?php echo esc_html( $component_name ); ?>"> 433 451 434 452 <?php foreach ( $actions as $action_key => $action_values ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.