Changeset 13433 for trunk/src/bp-core/bp-core-rewrites.php
- Timestamp:
- 03/07/2023 04:28:08 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-rewrites.php
r13432 r13433 73 73 * 74 74 * @param string $component_id The BuddyPress component's ID. 75 * @param string $rewrite_id The view rewrite ID. 76 * @param string $default_slug The view default slug. 75 * @param string $rewrite_id The view rewrite ID, used to find the custom slugs. 76 * Eg: `member_profile_edit` will try to find the xProfile edit's slug. 77 * @param string $default_slug The view default slug, used as a fallback. 77 78 * @return string The slug to use for the view belonging to the requested component. 78 79 */ … … 84 85 return $slug; 85 86 } 87 88 // Make sure a `bp_` prefix is used. 89 $rewrite_id = 'bp_' . str_replace( 'bp_', '', sanitize_key( $rewrite_id ) ); 86 90 87 91 $custom_slugs = (array) $directory_pages->{$component_id}->custom_slugs;
Note: See TracChangeset
for help on using the changeset viewer.