Skip to:
Content

BuddyPress.org

Changeset 9556


Ignore:
Timestamp:
02/25/2015 01:42:43 AM (9 years ago)
Author:
boonebgorges
Message:

Pass the notification object to the 'bp_get_the_notification_description' filter.

Props finzend.
Fixes #6239.

File:
1 edited

Legend:

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

    r9500 r9556  
    793793         *
    794794         * @since BuddyPress (1.9.0)
    795          *
    796          * @param string $description Full-text description for a specific notification.
    797          */
    798         return apply_filters( 'bp_get_the_notification_description', $description );
     795         * @since BuddyPress (2.3.0) Added the `$notification` parameter.
     796         *
     797         * @param string $description  Full-text description for a specific notification.
     798         * @param object $notification Notification object.
     799         */
     800        return apply_filters( 'bp_get_the_notification_description', $description, $notification );
    799801    }
    800802
Note: See TracChangeset for help on using the changeset viewer.