[buddypress-trac] [BuddyPress] #4514: bp_send_message_button function within the members loop

buddypress-trac noreply at wordpress.org
Fri Feb 22 16:25:32 UTC 2013

#4514: bp_send_message_button function within the members loop
 Reporter:  thirstcard    |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Core          |     Version:  1.6.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |
Changes (by boonebgorges):

 * keywords:  reporter-feedback =>
 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


 By the looks of things, `bp_send_message_button()` is not intended to work
 in the user directory. It calls `bp_get_send_private_message_link()`,
 which creates the link using `bp_core_get_username( bp_displayed_user_id()
 )`. In the case of member directories, there *is* no
 `bp_displayed_user_id()`. If you want to have a button in the directory,
 you'll need to build your own (or filter
 `'bp_get_send_private_mesage_link'` and provide your own link)

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4514#comment:2>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list