Changeset 3120 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network
- Timestamp:
- 05/11/2016 11:23:54 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/sponsor-invoices-dashboard.php
r3119 r3120 317 317 switch_to_blog( $site_id ); 318 318 319 $invoice = get_post( $invoice_id );320 $to = \WordCamp_Budgets::get_requester_formatted_email( $invoice->post_author );321 $subject = "Invoice for {$invoice->post_title} $new_status";322 $sponsor_name = get_sponsor_name( $invoice_id );323 $invoice_url = admin_url( sprintf( 'post.php?post=%s&action=edit', $invoice_id ) );324 $headers = array( 'Reply-To: support@wordcamp.org' );325 $attachments = array();319 $invoice = get_post( $invoice_id ); 320 $to = \WordCamp_Budgets::get_requester_formatted_email( $invoice->post_author ); 321 $subject = "Invoice for {$invoice->post_title} $new_status"; 322 $sponsor_name = get_sponsor_name( $invoice_id ); 323 $invoice_url = admin_url( sprintf( 'post.php?post=%s&action=edit', $invoice_id ) ); 324 $headers = array( 'Reply-To: support@wordcamp.org' ); 325 $attachments = array(); 326 326 $attachment_message = ''; 327 $invoice_filename = false; 328 // todo realign 327 $invoice_filename = false; 329 328 330 329 if ( 'approved' === $new_status ) { 331 $sponsor_id = get_post_meta( $invoice_id, '_wcbsi_sponsor_id',true );332 $sponsor_email = get_post_meta( $sponsor_id, '_wcpt_sponsor_email_address',true );333 $ status_message = "has been sent to $sponsor_name via $sponsor_email. You will receive another notification when they have paid the invoice.";334 $ qbo_invoice_id = get_post_meta( $invoice_id, '_wcbsi_qbo_invoice_id', true );330 $sponsor_id = get_post_meta( $invoice_id, '_wcbsi_sponsor_id', true ); 331 $sponsor_email = get_post_meta( $sponsor_id, '_wcpt_sponsor_email_address', true ); 332 $qbo_invoice_id = get_post_meta( $invoice_id, '_wcbsi_qbo_invoice_id', true ); 333 $status_message = "has been sent to $sponsor_name via $sponsor_email. You will receive another notification when they have paid the invoice."; 335 334 $invoice_filename = \WordCamp_QBO_Client::get_invoice_filename( $qbo_invoice_id ); 336 // todo realign337 335 338 336 if ( ! is_wp_error( $invoice_filename ) ) {
Note: See TracChangeset
for help on using the changeset viewer.