Skip to:
Content

BuddyPress.org

Ticket #8136: 8136-1.patch

File 8136-1.patch, 1.6 KB (added by bhargavbhandari90, 7 years ago)

made documentation alignment proper

  • src/bp-friends/bp-friends-notifications.php

     
    7979                 *
    8080                 * @since 1.0.0
    8181                 *
    82                  * @param string|array $value       Depending on format, an HTML link to new requests profile
    83                  *                                  tab or array with link and text.
    84                  * @param int          $total_items The total number of messaging-related notifications
    85                  *                                  waiting for the user.
    86                  * @param int          $item_id     The primary item ID.
     82                 * @param string|array $value             Depending on format, an HTML link to new requests profile tab or array with link and text.
     83                 * @param int          $total_items       The total number of messaging-related notifications waiting for the user.
     84                 * @param int          $item_id           The primary item ID.
     85                 * @param int          $secondary_item_id The secondary item ID.
    8786                 */
    88                 $return = apply_filters( 'bp_friends_' . $amount . '_friendship_' . $action . '_notification', '<a href="' . esc_url( $link ) . '">' . esc_html( $text ) . '</a>', (int) $total_items, $item_id );
     87                $return = apply_filters( 'bp_friends_' . $amount . '_friendship_' . $action . '_notification', '<a href="' . esc_url( $link ) . '">' . esc_html( $text ) . '</a>', (int) $total_items, $item_id, $secondary_item_id );
    8988        } else {
    9089                /** This filter is documented in bp-friends/bp-friends-notifications.php */
    9190                $return = apply_filters( 'bp_friends_' . $amount . '_friendship_' . $action . '_notification', array(