diff --git a/includes/admin/class-wc-admin.php b/includes/admin/class-wc-admin.php index 7dda1226cfc..95b1d4db7dc 100644 --- a/includes/admin/class-wc-admin.php +++ b/includes/admin/class-wc-admin.php @@ -204,7 +204,7 @@ class WC_Admin { public function preview_emails() { if ( isset( $_GET['preview_woocommerce_mail'] ) ) { - if ( ! ( isset( $_REQUEST['_wpnonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['_wpnonce'], 'preview-mail' ) ) ) ) ) { + if ( ! ( isset( $_REQUEST['_wpnonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['_wpnonce'] ) ), 'preview-mail' ) ) ) { die( 'Security check' ); }