Skip to:
Content

BuddyPress.org

Ticket #6150: i6150.diff

File i6150.diff, 988 bytes (added by henry.wright, 5 years ago)
  • src/bp-messages/bp-messages-template.php

    diff --git src/bp-messages/bp-messages-template.php src/bp-messages/bp-messages-template.php
    index b327a6d..eec958f 100644
    function bp_the_thread_subject() { 
    20512051 * @return string
    20522052 */
    20532053function bp_get_the_thread_recipients(){
    2054         if ( 5 <= bp_get_thread_recipients_count() ) {
     2054    /**
     2055     * Filters the number used to determine whether a list of thread recipients or an "x recipients" string is displayed.
     2056     *
     2057     * @since BuddyPress (2.2.0)
     2058     *
     2059     * @param int $value Number to determine whether a list of thread recipients or an "x recipients" string is displayed.
     2060     */
     2061        if ( apply_filters( 'bp_get_the_thread_recipients_number', 5 ) <= bp_get_thread_recipients_count() ) {
    20552062                $recipients = sprintf( __( '%s recipients', 'buddypress' ), number_format_i18n( bp_get_thread_recipients_count() ) );
    20562063        } else {
    20572064                $recipients = bp_get_thread_recipients_list();