Nonce check notice. Closes #2869.

This commit is contained in:
Mike Jolley 2013-04-04 17:45:39 +01:00
parent 09699e5c61
commit 23eb142c79
1 changed files with 1 additions and 1 deletions

View File

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