From b6479acc4f3581338ed3a57358209b48c6a359a1 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 29 Feb 2016 14:40:30 -0500 Subject: [PATCH] Get rid of error msf for nonce --- models/block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.17.1