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 ) {