Hide disabled emails from dropdown

Fixes #10428
This commit is contained in:
Mike Jolley 2016-02-26 13:22:31 +00:00
parent 155afbb99a
commit 384db11839
1 changed files with 1 additions and 1 deletions

View File

@ -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 '<option value="send_email_'. esc_attr( $mail->id ) .'">' . esc_html( $mail->title ) . '</option>';
}
}