Update class-wc-emails.php

Added missing param sent_to_admin to email-addresses template
This commit is contained in:
Mike Koval 2017-11-03 11:33:55 +02:00 committed by GitHub
parent 482621a1de
commit d15aaf682d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -482,9 +482,9 @@ class WC_Emails {
return;
}
if ( $plain_text ) {
wc_get_template( 'emails/plain/email-addresses.php', array( 'order' => $order ) );
wc_get_template( 'emails/plain/email-addresses.php', array( 'order' => $order, 'sent_to_admin' => $sent_to_admin ) );
} else {
wc_get_template( 'emails/email-addresses.php', array( 'order' => $order ) );
wc_get_template( 'emails/email-addresses.php', array( 'order' => $order, 'sent_to_admin' => $sent_to_admin ) );
}
}