Changeset 10303 for trunk/src/bp-notifications/bp-notifications-cache.php
- Timestamp:
- 10/22/2015 06:02:55 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/bp-notifications-cache.php
r10138 r10303 3 3 * Functions related to notifications caching. 4 4 * 5 * @since 2.0.06 *7 5 * @package BuddyPress 8 6 * @subpackage NotificationsCache 7 * @since 2.0.0 9 8 */ 10 9 … … 68 67 function bp_notifications_clear_all_for_user_cache_before_delete( $args ) { 69 68 70 // Pull up a list of items matching the args (those about te be deleted) 69 // Pull up a list of items matching the args (those about te be deleted). 71 70 $ns = BP_Notifications_Notification::get( $args ); 72 71 … … 93 92 function bp_notifications_clear_all_for_user_cache_before_update( $update_args, $where_args ) { 94 93 95 // User ID is passed in where arugments 94 // User ID is passed in where arugments. 96 95 if ( ! empty( $where_args['user_id'] ) ) { 97 96 bp_notifications_clear_all_for_user_cache( $where_args['user_id'] ); 98 97 99 // Get user ID from Notification ID 98 // Get user ID from Notification ID. 100 99 } elseif ( ! empty( $where_args['id'] ) ) { 101 100 $n = bp_notifications_get_notification( $where_args['id'] );
Note: See TracChangeset
for help on using the changeset viewer.