Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/30/2013 04:44:58 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Refactor Messages component's approach to Notifications integration:

  • Introduce helper functions for handling the adding/marking/deleting of notifications. Hook these new functions into their respective actions rather than have them hardcoded and interspersed amongst the first-class code.
  • See #5266.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-template.php

    r7584 r7621  
    185185        wp_redirect( bp_displayed_user_id() );
    186186    } else {
    187         if ( bp_is_current_action( 'inbox' ) ) {
    188             bp_core_mark_notifications_by_type( bp_loggedin_user_id(), $bp->messages->id, 'new_message' );
    189         }
    190 
    191187        if ( bp_is_current_action( 'sentbox' ) ) {
    192188            $box = 'sentbox';
Note: See TracChangeset for help on using the changeset viewer.