projects
/
WP-Plugins
/
glm-catalog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b48684d
)
fixing 500 error due to incorrect usage of wp_post as array
develop
author
Anthony Talarico
<talarico@gaslightmedia.com>
Mon, 8 May 2017 15:09:10 +0000
(11:09 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Mon, 8 May 2017 15:09:10 +0000
(11:09 -0400)
incorrectly used an array for post_type to get the id instead of
object arrow notation
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
ed27315
..
5370c6c
100755
(executable)
--- a/
index.php
+++ b/
index.php
@@
-265,7
+265,7
@@
function petosega_power() {
function petosega_save_meta() {
global $post;
if ( ! wp_verify_nonce( $_POST['petosegameta-meta-noncename'], 'petosegameta-meta-noncename' ) ) {
- return $post
['ID']
;
+ return $post
->ID
;
}
if ( ! current_user_can( 'edit_post', $post->ID ) ) {
return $post->ID;