Changeset 13691 for trunk/src/bp-core/bp-core-rewrites.php
- Timestamp:
- 01/09/2024 03:11:10 AM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-rewrites.php
r13678 r13691 187 187 ) 188 188 ); 189 190 // Define the path chunks out of parsed arguments to make them available & unchanged for the 'bp_rewrites_get_url' filter. 191 $path_chunks = $r; 189 192 190 193 if ( $r['component_id'] && isset( $bp->{$r['component_id']}->rewrite_ids ) ) { … … 275 278 276 279 /** 277 * Filter here to edit any Bud yPress URL.280 * Filter here to edit any BuddyPress URL. 278 281 * 279 282 * @since 12.0.0 280 283 * 281 * @param string $url The Bud yPress URL.282 * @param array $ r{284 * @param string $url The BuddyPress URL. 285 * @param array $path_chunks { 283 286 * Optional. An array of arguments. 284 287 * … … 294 297 * @type array $single_item_action_variables The list of BuddyPress single item's action variable URL chunks. Defaults []. 295 298 * } 299 * @param array $args Original arguments used with the function. 296 300 */ 297 return apply_filters( 'bp_rewrites_get_url', $url, $ r);301 return apply_filters( 'bp_rewrites_get_url', $url, $path_chunks, $args ); 298 302 } 299 303
Note: See TracChangeset
for help on using the changeset viewer.