Opened 13 years ago
Closed 13 years ago
#2447 closed defect (bug) (duplicate)
profile topics and replies links are partly hardcoded
| Reported by: | rwatuny | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Locale - i18n/l10n | Version: | 2.4 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
In bbpress/includes/users/template.php, the following functions uses hardcoded strings when they should use user defined slugs :
function bbp_get_user_topics_created_url,
line 1145 contains the string "topics"
$url = $wp_rewrite->root . bbp_get_user_slug() . '/%' . bbp_get_user_rewrite_id() . '%/topics';
function bbp_get_user_replies_created_url
line 1205 contains the string "replies"
$url = $wp_rewrite->root . bbp_get_user_slug() . '/%' . bbp_get_user_rewrite_id() . '%/replies';
An exemple of what could be done can be found in the bbp_favorites_permalink function in the same file.
Change History (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Closing in favor of #2448 since it has a patch.
Thanks for the report!