#3800 closed defect (bug) (fixed)
bp_message_get_recipient_tabs() uses bp_core_get_userid() instead of bp_core_get_userid_from_nicename()
| Reported by: | r-a-y | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5.2 |
| Component: | Messages | Version: | 1.5.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
By default, BuddyPress now checks for user_nicename instead of user_login, however we don't check for user_nicename in bp_core_get_userid().
So far, I've found this breaks autocomplete functionality for the messages component if the user_login does not match the user_nicename. (For the most part, this occurs on single WordPress installs that are adding BuddyPress for the first time.) But there could be more instances.
A code audit of user_login vs. user_nicename should probably be done at the same time as well.
Attachments (1)
Change History (8)
#1
@
15 years ago
- Component Members → Messaging
- Severity major → normal
- Summary bp_core_get_userid() needs a check for user_nicename → bp_message_get_recipient_tabs() uses bp_core_get_userid() instead of bp_core_get_userid_from_nicename()
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Okay, just did some investigating.
Turns out there is a function that grabs the user_id by user_nicename - bp_core_get_userid_from_nicename().
We should use that function combined with bp_is_username_compatibility_mode() in bp_message_get_recipient_tabs().
Changing the ticket title appropriately.