woothemes/woocommerce — comment on commit 77fceab68cca6e0ba3cfa2e992ca1f2fd7dd5546
File: classes/class-wc-email.php line 266
By spencerfinnell:

This is wrong. There is an extra $attachments inclusion before $headers. This breaks HTML emails.