Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 13 years ago

Last modified 13 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's profile 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)

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

Download all attachments as: .zip

Change History (8)

#1 @r-a-y
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()

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
13 years ago

#2 @r-a-y
13 years ago

  • Keywords has-patch added; needs-patch removed
Version 0, edited 13 years ago by r-a-y (next)

#3 @DJPaul
13 years ago

  • Milestone changed from Awaiting Review to 1.6

#4 @r-a-y
13 years ago

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

#5 @boonebgorges
13 years ago

  • Milestone changed from 1.6 to 1.5.2

This seems fine for 1.5.2.

#6 @boonebgorges
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(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
13 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.