From 384db11839b2b3f00c49428802f3baebee8ce09c Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 26 Feb 2016 13:22:31 +0000 Subject: [PATCH] Hide disabled emails from dropdown Fixes #10428 --- includes/admin/meta-boxes/class-wc-meta-box-order-actions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php b/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php index 504ba031e10..9c2223d9da8 100644 --- a/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php +++ b/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php @@ -49,7 +49,7 @@ class WC_Meta_Box_Order_Actions { if ( ! empty( $mails ) ) { foreach ( $mails as $mail ) { - if ( in_array( $mail->id, $available_emails ) ) { + if ( in_array( $mail->id, $available_emails ) && 'yes' === $mail->enabled ) { echo ''; } }