[buddypress-trac] [BuddyPress Trac] #5327: bp_get_the_thread_recipients() is not displaying correctly

buddypress-trac noreply at wordpress.org
Mon Oct 27 00:49:01 UTC 2014


#5327: bp_get_the_thread_recipients() is not displaying correctly
----------------------------------------+--------------------
 Reporter:  colabsadmin                 |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  2.2
Component:  Messaging                   |     Version:  1.9.1
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |
----------------------------------------+--------------------

Comment (by joshshashaty):

 Took @DJPaul suggestion and put the count logic in the template so people
 can have control over that number, also allowed them to modify the text in
 either situation where we want to list users with links or just the number
 of people in the message.  Created new functions to support this,
 `bp_get_thread_recipients_count()`, `bp_the_thread_recipients_list()`,
 `bp_get_thread_recipients_list()` ... we left the old function
 (`bp_get_the_thread_recipients`) in case anyone is using the single.php
 template in their theme and modified it to use our new functions.

 Props to @Clean-Cole for all the help on this patch (my first patch).
 Suggestions/thoughts welcome.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5327#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list