Ticket #5736: 5736.01.patch
File 5736.01.patch, 881 bytes (added by , 10 years ago) |
---|
-
bp-messages-notifications.php
123 123 */ 124 124 function messages_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { 125 125 $total_items = (int) $total_items; 126 126 $link = trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() . '/inbox' ); 127 $title = __( 'Inbox', 'buddypress' ); 128 127 129 if ( 'new_message' === $action ) { 128 $link = trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() . '/inbox' );129 $title = __( 'Inbox', 'buddypress' );130 131 130 if ( $total_items > 1 ) { 132 131 $text = sprintf( __( 'You have %d new messages', 'buddypress' ), $total_items ); 133 132 $filter = 'bp_messages_multiple_new_message_notification';