Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#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)

3800.01.patch (596 bytes ) - added by r-a-y 15 years ago.

Download all attachments as: .zip

Change History (8)

#1 @r-a-y
15 years ago

  • Component MembersMessaging
  • Severity majornormal
  • Summary bp_core_get_userid() needs a check for user_nicenamebp_message_get_recipient_tabs() uses bp_core_get_userid() instead of bp_core_get_userid_from_nicename()

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.

@r-a-y
15 years ago

#2 @r-a-y
15 years ago

  • Keywords has-patch added; needs-patch removed

Patch is against v1.5.1.

Last edited 15 years ago by r-a-y (previous) (diff)

#3 @DJPaul
15 years ago

  • Milestone Awaiting Review1.6

#4 @r-a-y
15 years ago

Would like to see this set for the v1.5.2 milestone if possible.

#5 @boonebgorges
15 years ago

  • Milestone 1.61.5.2

This seems fine for 1.5.2.

#6 @boonebgorges
15 years ago

  • Resolutionfixed
  • Status newclosed

(In [5532]) Use the proper function for getting userid in bp_message_get_recipient_tabs(), depending on configuration. Fixes #3800. Props r-a-y

#7 @boonebgorges
15 years ago

(In [5533]) Use the proper function for getting userid in bp_message_get_recipient_tabs(), depending on configuration. Fixes #3800. Props r-a-y

Note: See TracTickets for help on using tickets.