Changeset 13091 for trunk/src/bp-notifications/bp-notifications-cache.php
- Timestamp:
- 08/23/2021 02:03:02 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/bp-notifications-cache.php
r12518 r13091 31 31 'object_column' => 'notification_id', 32 32 'meta_table' => buddypress()->notifications->table_name_meta, 33 'cache_key_prefix' => 'bp_notifications_meta' 33 'cache_key_prefix' => 'bp_notifications_meta', 34 34 ) ); 35 35 } … … 53 53 * @since 2.0.0 54 54 * 55 * @param BP_Notifications_Notification $n Notification object.55 * @param BP_Notifications_Notification $notification Notification object. 56 56 */ 57 function bp_notifications_clear_all_for_user_cache_after_save( BP_Notifications_Notification $n ) {58 bp_notifications_clear_all_for_user_cache( $n ->user_id );57 function bp_notifications_clear_all_for_user_cache_after_save( $notification ) { 58 bp_notifications_clear_all_for_user_cache( $notification->user_id ); 59 59 } 60 60 add_action( 'bp_notification_after_save', 'bp_notifications_clear_all_for_user_cache_after_save' );
Note: See TracChangeset
for help on using the changeset viewer.