WordPress.org

Making WordPress.org

Changeset 2671


Ignore:
Timestamp:
03/02/2016 09:25:59 PM (5 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Only send reimbursement notifications for reimbursements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/reimbursement-request.php

    r2646 r2671  
    623623
    624624/**
    625  * Notify the organizer when the status of their invoice changes or when notes are added
     625 * Notify the organizer when the status of their reimbursement changes or when notes are added
    626626 *
    627627 * @param string   $new_status
     
    630630 */
    631631function notify_organizer_request_updated( $new_status, $old_status, $request ) {
     632    if ( $request->post_type !== POST_TYPE ) {
     633        return;
     634    }
     635
    632636    if ( $new_status === $old_status ) {
    633637        return;
Note: See TracChangeset for help on using the changeset viewer.