Skip to content

Commit

Permalink
Fix bug found in final pre-release testing phase
Browse files Browse the repository at this point in the history
  • Loading branch information
zeko868 committed Oct 7, 2021
1 parent 468e888 commit 1e04358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Wooplatnica.php
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ public function add_wooplatnica_gateway_class($methods)
public function email_instructions($order, $sent_to_admin, $plain_text = false)
{
if ($this->should_attach_payment_slip_in_email($order)) {
if ($sent_to_admin) {
if (!$sent_to_admin) {
if ($this->options['instructions']) {
echo wpautop(wptexturize($this->options['instructions'])).PHP_EOL;
}
Expand Down

0 comments on commit 1e04358

Please sign in to comment.