Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/15/2011 10:40:03 PM (15 years ago)
Author:
boonebgorges
Message:

Reconfigures the way that new activity mentions are stored and incremented, so that counts more accurately reflect new and deleted activity items. Fixes #2082

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-screens.php

    r4287 r4367  
    6868add_action( 'bp_activity_screen_single_activity_permalink', 'bp_activity_remove_screen_notifications' );
    6969add_action( 'bp_activity_screen_mentions',                  'bp_activity_remove_screen_notifications' );
     70
     71/**
     72 * Reset the logged-in user's new mentions data when he visits his mentions screen
     73 *
     74 * @package BuddyPress Activity
     75 * @since 1.3
     76 * @uses bp_activity_clear_new_mentions()
     77 * @uses bp_is_my_profile()
     78 */
     79function bp_activity_reset_my_new_mentions() { 
     80    if ( bp_is_my_profile() )
     81        bp_activity_clear_new_mentions( bp_loggedin_user_id() );
     82}
     83add_action( 'bp_activity_screen_mentions', 'bp_activity_reset_my_new_mentions' );
    7084
    7185function bp_activity_screen_single_activity_permalink() {
Note: See TracChangeset for help on using the changeset viewer.