Skip to:
Content

BuddyPress.org

Changeset 8947


Ignore:
Timestamp:
08/20/2014 03:17:55 PM (7 years ago)
Author:
boonebgorges
Message:

In messages_format_notifications(), declare variables early, to avoid PHP notices.

Fixes #5736

Props wolfhoundjesse

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-notifications.php

    r8662 r8947  
    124124function messages_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
    125125    $total_items = (int) $total_items;
     126    $link        = trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() . '/inbox' );
     127    $title       = __( 'Inbox', 'buddypress' );
    126128
    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 );
Note: See TracChangeset for help on using the changeset viewer.