{"id":3660484,"date":"2013-04-15T16:11:01","date_gmt":"2013-04-15T16:11:01","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/undefined-variable-post\/"},"modified":"2016-08-21T00:11:53","modified_gmt":"2016-08-21T00:11:53","slug":"undefined-variable-post","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/undefined-variable-post\/","title":{"rendered":"Undefined variable: post"},"content":{"rendered":"<p>Plugin throws the following error:<\/p>\n<pre><code>Notice: Undefined variable: post in \/{wordpress path}\/wp-content\/plugins\/the-viddler-wordpress-plugin\/viddlercomments.php on line 172 Notice: Trying to get property of non-object in \/{wordpress path}\/wp-content\/plugins\/the-viddler-wordpress-plugin\/viddlercomments.php on line 172<\/code><\/pre>\n<p>Issue adding &#8220;$post&#8221; to the global declarations on line 169 like so:<\/p>\n<pre><code>global $viddler_player_type_posts, $viddler_download_source, $post;<\/code><\/pre>\n<p>https:\/\/wordpress.org\/extend\/plugins\/the-viddler-wordpress-plugin\/<\/p>\n","protected":false},"template":"","class_list":["post-3660484","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3660484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3660484\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3660484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}