projects
/
WP-Plugins
/
glm-blocks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
843890f
)
Get rid of error msf for nonce
author
Steve Sutton
<steve@gaslightmedia.com>
Mon, 29 Feb 2016 19:40:30 +0000
(14:40 -0500)
committer
Steve Sutton
<steve@gaslightmedia.com>
Mon, 29 Feb 2016 19:40:30 +0000
(14:40 -0500)
models/block.php
patch
|
blob
|
history
diff --git
a/models/block.php
b/models/block.php
index
5c018a1
..
b127dd4
100644
(file)
--- 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;
}