From 23eb142c798b8862b9423e0c59dae39a60e8a528 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 4 Apr 2013 17:45:39 +0100 Subject: [PATCH] Nonce check notice. Closes #2869. --- admin/woocommerce-admin-settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/woocommerce-admin-settings.php b/admin/woocommerce-admin-settings.php index 22611916084..55faed649c4 100644 --- a/admin/woocommerce-admin-settings.php +++ b/admin/woocommerce-admin-settings.php @@ -41,7 +41,7 @@ if ( ! function_exists( 'woocommerce_settings' ) ) { // Save settings if ( ! empty( $_POST ) ) { - if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'woocommerce-settings' ) ) + if ( empty( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'woocommerce-settings' ) ) die( __( 'Action failed. Please refresh the page and retry.', 'woocommerce' ) ); if ( ! $current_section ) {