Changeset 13446 for trunk/src/bp-members/bp-members-functions.php
- Timestamp:
- 04/04/2023 01:06:03 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-functions.php
r13443 r13446 140 140 141 141 /** 142 * Get members path chunks using an array of URL slugs.142 * Get single member's path chunks using an array of URL slugs. 143 143 * 144 144 * @since 12.0.0 … … 164 164 } 165 165 166 if ( $chunks && $item_component_rewrite_id_suffix && $item_ component_rewrite_id_suffix ) {166 if ( $chunks && $item_component_rewrite_id_suffix && $item_action_rewrite_id_suffix ) { 167 167 foreach ( $chunks as $chunk ) { 168 $item_action_variable_rewrite_id_suffix = str_replace( '-', '_', $chunk ); 169 $path_chunks['single_item_action_variables'][] = bp_rewrites_get_slug( 'members', 'member_' . $item_component_rewrite_id_suffix . '_' . $item_action_rewrite_id_suffix . '_' . $item_action_variable_rewrite_id_suffix, $chunk ); 168 if ( is_numeric( $chunk ) ) { 169 $path_chunks['single_item_action_variables'][] = $chunk; 170 } else { 171 $item_action_variable_rewrite_id_suffix = str_replace( '-', '_', $chunk ); 172 $path_chunks['single_item_action_variables'][] = bp_rewrites_get_slug( 'members', 'member_' . $item_component_rewrite_id_suffix . '_' . $item_action_rewrite_id_suffix . '_' . $item_action_variable_rewrite_id_suffix, $chunk ); 173 } 170 174 } 171 175 }
Note: See TracChangeset
for help on using the changeset viewer.