{"id":4181520,"date":"2013-10-02T01:38:55","date_gmt":"2013-10-02T01:38:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/patch-non-static-method-warning\/"},"modified":"2016-08-21T05:41:06","modified_gmt":"2016-08-21T05:41:06","slug":"patch-non-static-method-warning","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/patch-non-static-method-warning\/","title":{"rendered":"[PATCH] non-static method warning"},"content":{"rendered":"<p>With WP_DEBUG page your plugin causes a bunch of warnings on the plugin list page in admin:<br \/>\nStrict standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method techgasp_pinterestmaster::techgasp_pinterestmaster_link() should not be called statically in \/path\/to\/wp-includes\/plugin.php on line 173<\/p>\n<p>Easy enough fix. In <em>techgasp-pinterestmaster.php<\/em> on line 109 change<\/p>\n<pre><code>public function techgasp_pinterestmaster_link($links, $file) {<\/code><\/pre>\n<p>to<\/p>\n<pre><code>public static function techgasp_pinterestmaster_link($links, $file) {<\/code><\/pre>\n<p>https:\/\/wordpress.org\/plugins\/pinterest-master\/<\/p>\n","protected":false},"template":"","class_list":["post-4181520","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4181520","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\/4181520\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4181520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}