Nonce check notice. Closes #2869.
This commit is contained in:
parent
09699e5c61
commit
23eb142c79
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue