Changeset 5934
- Timestamp:
- 03/16/2012 04:22:12 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-buddybar.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-buddybar.php
r5929 r5934 80 80 // version will not contain this subnav slug. 81 81 if ( !empty( $default_subnav_slug ) && bp_is_current_action( $default_subnav_slug ) ) { 82 unset( $bp->canonical_stack['action'] ); 82 if ( ! bp_is_action_variable( 'page', 0 ) && ! bp_action_variable( 1 ) ) { 83 unset( $bp->canonical_stack['action'] ); 84 } 83 85 } else if ( !bp_current_action() ) { 84 86 if ( is_object( $screen_function[0] ) ) { … … 100 102 // The canonical version will not contain this subnav slug. 101 103 if ( !empty( $default_subnav_slug ) && bp_is_current_action( $default_subnav_slug ) ) { 102 unset( $bp->canonical_stack['action'] ); 104 if ( ! bp_is_action_variable( 'page', 0 ) && ! bp_action_variable( 1 ) ) { 105 unset( $bp->canonical_stack['action'] ); 106 } 103 107 } else if ( !bp_current_action() ) { 104 108 if ( is_object( $screen_function[0] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.