Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/28/2016 05:25:24 PM (9 years ago)
Author:
r-a-y
Message:

Notifications: Fix issue with querying notifications by string format.

If someone is using:
bp_notifications_get_notifications_for_user( $user_id, 'string' )

This functionality broke in #7066.

Commit fixes this issue and includes unit tests.

Fixes #7141 (trunk).

File:
1 edited

Legend:

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

    r10825 r10911  
    255255                // Return an array of content strings.
    256256                } else {
    257                     $content      = call_user_func( $bp->{$component_name}->notification_callback, $component_action_name, $component_action_items[0]->item_id, $component_action_items[0]->secondary_item_id, $action_item_count, $component_action_items[0]->id );
     257                    $content      = call_user_func( $bp->{$component_name}->notification_callback, $component_action_name, $component_action_items[0]->item_id, $component_action_items[0]->secondary_item_id, $action_item_count, 'string', $component_action_items[0]->id );
    258258                    $renderable[] = $content;
    259259                }
Note: See TracChangeset for help on using the changeset viewer.