Skip to:
Content

BuddyPress.org

Changeset 8169


Ignore:
Timestamp:
03/27/2014 01:34:56 AM (12 years ago)
Author:
r-a-y
Message:

Friends: Pass $item_id as an argument for notification format filters.

Props mpa4hu

See #5314

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-notifications.php

    r7619 r8169  
    165165        // Return either an HTML link or an array, depending on the requested format
    166166        if ( 'string' == $format ) {
    167                 $return = apply_filters( $filter, '<a href="' . esc_url( $link ) . '">' . esc_html( $text ) . '</a>', (int) $total_items );
     167                $return = apply_filters( $filter, '<a href="' . esc_url( $link ) . '">' . esc_html( $text ) . '</a>', (int) $total_items, $item_id );
    168168        } else {
    169169                $return = apply_filters( $filter, array(
    170170                        'link' => $link,
    171171                        'text' => $text
    172                 ), (int) $total_items );
     172                ), (int) $total_items, $item_id );
    173173        }
    174174
Note: See TracChangeset for help on using the changeset viewer.