Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/02/2015 01:36:28 AM (10 years ago)
Author:
boonebgorges
Message:

Introduce bp_get_max_thread_recipients_to_list().

This wrapper function makes it possible to filter the number of recipients on
a message thread beyond which the 'Conversation between...' gloss goes from
listing the recipients' names to simply saying "x recipients".

Props henry.wright.
Fixes #6150.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/single.php

    r9819 r9830  
    2121                    <?php _e( 'You are alone in this conversation.', 'buddypress' ); ?>
    2222
    23                 <?php elseif ( 5 <= bp_get_thread_recipients_count() ) : ?>
     23                <?php elseif ( bp_get_max_thread_recipients_to_list() <= bp_get_thread_recipients_count() ) : ?>
    2424
    2525                    <?php printf( __( 'Conversation between %s recipients.', 'buddypress' ), number_format_i18n( bp_get_thread_recipients_count() ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.