Making WordPress.org

Changeset 2484


Ignore:
Timestamp:
02/08/2016 07:57:02 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Budgets Dashboard: Update the message of invoice notification e-mails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/sponsor-invoices-dashboard.php

    r2388 r2484  
    349349
    350350    if ( 'approved' === $new_status ) {
    351         $status_message = "has been approved by a WordCamp deputy, and sent to $sponsor_name. You will receive another notification when they have paid the invoice";
     351        $sponsor_id     = get_post_meta( $invoice_id, '_wcbsi_sponsor_id',            true );
     352        $sponsor_email  = get_post_meta( $sponsor_id, '_wcpt_sponsor_email_address',  true );
     353        $status_message = "has been sent to $sponsor_name via $sponsor_email. You will receive another notification when they have paid the invoice.";
    352354    } elseif ( 'paid' === $new_status ) {
    353         $status_message = "has been paid by $sponsor_name and is now complete";
     355        $status_message = "has been paid by $sponsor_name. Go ahead and publish them to your website!";
    354356    }
    355357
    356358    $message = "
    357         The invoice for `{$invoice->post_title}` $status_message.
    358 
    359         You can view the invoice and its status at:
     359        The invoice for `{$invoice->post_title}` $status_message
     360
     361        You can view the invoice and its status any time at:
    360362
    361363        $invoice_url
Note: See TracChangeset for help on using the changeset viewer.