From 4f58787fdd08875ee905c330fa864b3a6ba40800 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 8 May 2017 11:09:10 -0400 Subject: [PATCH] fixing 500 error due to incorrect usage of wp_post as array incorrectly used an array for post_type to get the id instead of object arrow notation --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index ed27315..5370c6c 100755 --- 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; -- 2.17.1