{"id":11398623,"date":"2019-04-06T11:45:38","date_gmt":"2019-04-06T11:45:38","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/fix-for-deprecated-function-create_function-error\/"},"modified":"2019-04-06T11:46:08","modified_gmt":"2019-04-06T11:46:08","slug":"fix-for-deprecated-function-create_function-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/fix-for-deprecated-function-create_function-error\/","title":{"rendered":"Fix for Deprecated: Function create_function() error"},"content":{"rendered":"<p>I don&#8217;t see much support for this plugin, so wanted to share the fix for this error you see when debug is on:<\/p>\n<p><code>Deprecated: Function create_function() is deprecated in ...\/wp-content\/plugins\/wp-trello\/wp-trello.php on line 88<\/code><\/p>\n<p>Delete (or comment line by starting with <code>\/\/<\/code> )line 88 and replace with:<\/p>\n<pre><code>                        add_action( &#039;widgets_init&#039;, &#039;wp_trello_register_widget&#039;);\n                        function wp_trello_register_widget(){\n                                return register_widget(&quot;wpt_widget&quot; ); \n                        }\n <\/code><\/pre>\n","protected":false},"template":"","class_list":["post-11398623","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11398623","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":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11398623\/revisions"}],"predecessor-version":[{"id":11398625,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11398623\/revisions\/11398625"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11398623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}