From: Anthony Talarico Date: Mon, 8 May 2017 15:09:10 +0000 (-0400) Subject: fixing 500 error due to incorrect usage of wp_post as array X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fdevelop;p=WP-Plugins%2Fglm-catalog.git 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 --- 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;