Get rid of error msf for nonce
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 29 Feb 2016 19:40:30 +0000 (14:40 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 29 Feb 2016 19:40:30 +0000 (14:40 -0500)
models/block.php

index 5c018a1..b127dd4 100644 (file)
@@ -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;
         }