- Timestamp:
- 05/21/2015 07:56:59 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/classes/class-bp-notifications-notification.php
r9819 r9887 831 831 $where = self::get_query_clauses( $where_args ); 832 832 833 // make sure we delete the notification cache for the user on update 834 if ( ! empty( $where_args['user_id'] ) ) { 835 wp_cache_delete( 'all_for_user_' . $where_args['user_id'], 'bp_notifications' ); 836 } 837 838 return self::_update( $update['data'], $where['data'], $update['format'], $where['format'] ); 833 /** 834 * Fires before the update of a notification item. 835 * 836 * @since BuddyPress (2.3.0) 837 * 838 * @param array $update_args See BP_Notifications_Notification::update(). 839 * @param array $where_args See BP_Notifications_Notification::update(). 840 */ 841 do_action( 'bp_notification_before_update', $update_args, $where_args ); 842 843 return self::_update( 844 $update['data'], 845 $where['data'], 846 $update['format'], 847 $where['format'] 848 ); 839 849 } 840 850
Note: See TracChangeset
for help on using the changeset viewer.