fixing 500 error due to incorrect usage of wp_post as array develop
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 8 May 2017 15:09:10 +0000 (11:09 -0400)
committerAnthony 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

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;