#4726 closed defect (bug) (duplicate)
Bad titles on directories pages (issue in bp_get_name_from_root_slug)
Reported by: | slaFFik | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 1.6.1 |
Component: | Route Parser | Keywords: | needs-patch |
Cc: | slava.abakumov@… |
Description
If you create a page called Community (for example) and then create Activity, Members etc pages and assign them to appropriate directory - BuddyPress will work fine (I mean users/groups links etc).
But bp_get_name_from_root_slug()
will return false.
Reason - $bp->{$component}->root_slug
will use part of url (like community/activity), while bp_current_component()
will return just $bp->{$component}->slug
. They are not equal and {{{bp_get_name_from_root_slug()}} -> false.
This problem prevents from translating title on directories pages.
$title = sprintf( __( '%s Directory', 'buddypress' ), bp_get_name_from_root_slug() );
This actually will be just Directory
Change History (7)
#1
@
12 years ago
- Component changed from Core to i18n
- Keywords 1.8-early needs-patch added
- Milestone changed from Awaiting Review to 1.8
#3
@
11 years ago
- Component changed from i18n to Rewrite Rules
- Keywords 1.8-early removed
- Milestone changed from 1.8 to 1.9
See #4954