Skip to:
Content

Changeset 11562


Ignore:
Timestamp:
06/01/17 16:15:50 (9 months ago)
Author:
r-a-y
Message:

Messages: Fix $args parameter in 'bp_messages_sent_notification_email' hook.

This was broken since we added BuddyPress HTML email support in v2.5 and
changed the $args variable when sending an email.

This commit removes the $args override, which fixes this problem.

Props idofri.

Fixes #7531.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-functions.php

    r11447 r11562  
    604604        ); 
    605605 
    606         $args = array( 
     606        bp_send_email( 'messages-unread', $ud, array( 
    607607            'tokens' => array( 
    608608                'usermessage' => wp_strip_all_tags( stripslashes( $message ) ), 
     
    612612                'unsubscribe' => esc_url( bp_email_get_unsubscribe_link( $unsubscribe_args ) ), 
    613613            ), 
    614         ); 
    615         bp_send_email( 'messages-unread', $ud, $args ); 
     614        ) ); 
    616615    } 
    617616 
Note: See TracChangeset for help on using the changeset viewer.