Changeset 3983 for trunk/bp-core/bp-core-template.php
- Timestamp:
- 02/01/2011 07:53:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-template.php
r3982 r3983 543 543 function bp_current_action() { 544 544 global $bp; 545 return apply_filters( 'bp_current_action', $bp->current_action ); 545 $current_action = !empty( $bp->current_action ) ? $bp->current_action : false; 546 return apply_filters( 'bp_current_action', $current_action ); 546 547 } 547 548 548 549 function bp_current_item() { 549 550 global $bp; 550 return apply_filters( 'bp_current_item', $bp->current_item ); 551 $current_item = !empty( $bp->current_item ) ? $bp->current_item : false; 552 return apply_filters( 'bp_current_item', $current_item ); 551 553 } 552 554 553 555 function bp_action_variables() { 554 556 global $bp; 555 return apply_filters( 'bp_action_variables', $bp->action_variables ); 557 $action_variables = !empty( $bp->action_variables ) ? $bp->action_variables : false; 558 return apply_filters( 'bp_action_variables', $action_variables ); 556 559 } 557 560 … … 738 741 739 742 function bp_is_current_item( $item = '' ) { 740 global $bp; 741 742 if ( $item == $bp->current_item ) 743 if ( !empty( $item ) && $item == bp_current_item() ) 743 744 return true; 744 745
Note: See TracChangeset
for help on using the changeset viewer.