- Timestamp:
- 05/07/2023 11:36:50 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/template-tags.php
r13443 r13471 4 4 * 5 5 * @since 3.0.0 6 * @version 1 0.0.06 * @version 12.0.0 7 7 */ 8 8 … … 1037 1037 1038 1038 if ( 'directory' === $bp_nouveau->displayed_nav ) { 1039 $scope = array( 'data-bp-scope' => $nav_item->slug ); 1039 $scope = array( 1040 'data-bp-scope' => $nav_item->slug 1041 ); 1040 1042 1041 1043 } elseif ( 'personal' === $bp_nouveau->displayed_nav && ! empty( $nav_item->secondary ) ) { 1042 $scope = array( 'data-bp-user-scope' => $nav_item->slug ); 1044 $rewrite_id = bp_rewrites_get_custom_slug_rewrite_id( 'members', $nav_item->slug, bp_current_component() ); 1045 $user_scope = $nav_item->slug; 1046 1047 if ( $rewrite_id ) { 1048 $user_scope = str_replace( 1049 array( 'bp_member_' . bp_current_component() . '_', '_' ), 1050 array( '', '-' ), 1051 $rewrite_id 1052 ); 1053 } 1054 1055 $scope = array( 1056 'data-bp-user-scope' => $nav_item->slug 1057 ); 1043 1058 1044 1059 } else {
Note: See TracChangeset
for help on using the changeset viewer.