Skip to:
Content

BuddyPress.org

Ticket #5736: 5736.01.patch

File 5736.01.patch, 881 bytes (added by wolfhoundjesse, 10 years ago)

Declarations moved to top of function.

  • bp-messages-notifications.php

     
    123123 */
    124124function messages_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
    125125        $total_items = (int) $total_items;
    126 
     126        $link  = trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() . '/inbox' );
     127        $title = __( 'Inbox', 'buddypress' );
     128       
    127129        if ( 'new_message' === $action ) {
    128                 $link  = trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() . '/inbox' );
    129                 $title = __( 'Inbox', 'buddypress' );
    130 
    131130                if ( $total_items > 1 ) {
    132131                        $text   = sprintf( __( 'You have %d new messages', 'buddypress' ), $total_items );
    133132                        $filter = 'bp_messages_multiple_new_message_notification';