From: Steve Sutton Date: Mon, 29 Feb 2016 19:40:30 +0000 (-0500) Subject: Get rid of error msf for nonce X-Git-Tag: v1.5.1^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=b6479acc4f3581338ed3a57358209b48c6a359a1;p=WP-Plugins%2Fglm-blocks.git Get rid of error msf for nonce --- diff --git a/models/block.php b/models/block.php index 5c018a1..b127dd4 100644 --- a/models/block.php +++ b/models/block.php @@ -174,7 +174,7 @@ class glm_models_block global $post; // verify this came from the our screen and with proper authorization, // because save_post can be triggered at other times - if (isset($post) && !wp_verify_nonce($_POST['glm_block_noncename'], 'glm_block_noncename')) { + if (isset($post) && isset($_POST['glm_block_noncename']) && !wp_verify_nonce($_POST['glm_block_noncename'], 'glm_block_noncename')) { return $post->ID; }