Skip to:
Content

BuddyPress.org

Changeset 4875


Ignore:
Timestamp:
07/27/2011 11:48:30 AM (15 years ago)
Author:
boonebgorges
Message:

Properly deprecates bp_core_delete_notifications_for_user_by_item_id() and bp_core_delete_notifications_for_user_by_type(). Fixes #3391

File:
1 edited

Legend:

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

    r4820 r4875  
    322322
    323323/**
     324 * BP 1.3 simplified notification functions a bit
     325 */
     326function bp_core_delete_notifications_for_user_by_type( $user_id, $component_name, $component_action ) {
     327        _deprecated_function( __FUNCTION__, '1.3', 'bp_core_delete_notifications_by_type()' );
     328        return BP_Core_Notification::delete_for_user_by_type( $user_id, $component_name, $component_action );
     329}
     330
     331function bp_core_delete_notifications_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) {
     332        _deprecated_function( __FUNCTION__, '1.3', 'bp_core_delete_notifications_by_item_id()' );
     333        return BP_Core_Notification::delete_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id );
     334}
     335
     336/**
    324337 * In BP 1.3, these functions were renamed for greater consistency
    325338 */
Note: See TracChangeset for help on using the changeset viewer.