Changeset 7619 for trunk/bp-friends/bp-friends-cache.php
- Timestamp:
- 11/30/2013 03:47:27 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/bp-friends/bp-friends-cache.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-cache.php
r7556 r7619 10 10 * @subpackage FriendsCaching 11 11 */ 12 13 12 14 13 // Exit if accessed directly … … 29 28 } 30 29 31 /**32 * Clear friend-related notifications when ?new=1.33 */34 function friends_clear_friend_notifications() {35 if ( isset( $_GET['new'] ) ) {36 bp_core_mark_notifications_by_type( bp_loggedin_user_id(), buddypress()->friends->id, 'friendship_accepted' );37 }38 }39 add_action( 'bp_activity_screen_my_activity', 'friends_clear_friend_notifications' );40 41 30 // List actions to clear object caches on 42 31 add_action( 'friends_friendship_accepted', 'friends_clear_friend_object_cache' );
Note: See TracChangeset
for help on using the changeset viewer.