#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: | |
---|---|---|---|
Milestone: | 1.5.2 | Priority: | normal |
Severity: | normal | Version: | 1.5.1 |
Component: | Messages | 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
@
13 years ago
- Component changed from Members to Messaging
- Severity changed from major to normal
- Summary changed from bp_core_get_userid() needs a check for user_nicename to bp_message_get_recipient_tabs() uses bp_core_get_userid() instead of bp_core_get_userid_from_nicename()
#2
@
13 years ago
- Keywords has-patch added; needs-patch removed
Version 0, edited 13 years ago
by
(next)
Note: See
TracTickets for help on using
tickets.
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.