Skip to:
Content

BuddyPress.org

Changeset 10494


Ignore:
Timestamp:
02/02/2016 07:42:35 PM (4 years ago)
Author:
djpaul
Message:

Emails: fix name of action used to implement backwards compatibility with old BuddyPress.

Props imath

See #6592 and #6869.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/deprecated/2.5.php

    r10487 r10494  
    682682    );
    683683
    684     remove_action( 'bp_sent_email', 'bp_core_deprecated_email_actions', 20, 2 );
     684    remove_action( 'bp_send_email_success', 'bp_core_deprecated_email_actions', 20, 2 );
    685685    $email_content = $email->get( 'content' );
    686686    $email_subject = $email->get( 'subject' );
    687687    $email_type    = $email->get( 'type' );
    688688    $tokens        = $email->get( 'tokens' );
    689     add_action( 'bp_sent_email', 'bp_core_deprecated_email_actions', 20, 2 );
     689    add_action( 'bp_send_email_success', 'bp_core_deprecated_email_actions', 20, 2 );
    690690
    691691    // Backpat for pre-2.5 emails only.
     
    883883    }
    884884}
    885 add_action( 'bp_sent_email', 'bp_core_deprecated_email_actions', 20, 2 );
     885add_action( 'bp_send_email_success', 'bp_core_deprecated_email_actions', 20, 2 );
Note: See TracChangeset for help on using the changeset viewer.