Skip to:
Content

BuddyPress.org

Changeset 8628


Ignore:
Timestamp:
07/15/2014 11:33:52 PM (10 years ago)
Author:
johnjamesjacoby
Message:

When calling the deprecated bp_core_get_notifications_for_user() function, the bp_core_get_notifications_for_user filter is called two times: once in bp_notifications_get_notifications_for_user() and again bp_core_get_notifications_for_user().

Here we remove the deprecated one and rely on the one in bp_notifications_get_notifications_for_user() to do its job.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/deprecated/1.9.php

    r8626 r8628  
    124124    _deprecated_function( __FUNCTION__, '1.9', 'bp_notifications_get_notifications_for_user()' );
    125125
    126     $renderable = bp_notifications_get_notifications_for_user( $user_id, $format );
    127 
    128     return apply_filters( 'bp_core_get_notifications_for_user', $renderable, $user_id, $format );
     126    return bp_notifications_get_notifications_for_user( $user_id, $format );
    129127}
    130128
Note: See TracChangeset for help on using the changeset viewer.