[buddypress-trac] [BuddyPress Trac] #7640: Improve parameters of private and public message buttons, in order to improve flexibility and consistency

buddypress-trac noreply at wordpress.org
Tue Dec 5 08:47:36 UTC 2017


#7640: Improve parameters of private and public message buttons, in order to
improve flexibility and consistency
----------------------------+-----------------------------
 Reporter:  antonioeatgoat  |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Messages        |    Version:  2.9.2
 Severity:  normal          |   Keywords:  has-patch
----------------------------+-----------------------------
 The first couple of function involved are
 {{{bp_get_send_public_message_button()}}} and
 {{{bp_get_send_message_button()}}}. They do basically the same job in
 different contexts, however the first function accepts an array of
 parameters, but the second doesn't. This is the problem about consistency.

 About flexibility there is the fact that the functions use
 {{{bp_get_send_public_message_link()}}} and
 {{{bp_get_send_private_message_link()}}} to generate the links. The
 problem is that those functions work only on members page and they don't
 accept any parameter. It would be nice if they can receive an user ID, so
 that they can be used also in other places, such as the members loop.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7640>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list