{"id":15058701,"date":"2021-11-11T13:44:01","date_gmt":"2021-11-11T13:44:01","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/create_function-other-errors\/"},"modified":"2021-11-11T13:44:01","modified_gmt":"2021-11-11T13:44:01","slug":"create_function-other-errors","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/create_function-other-errors\/","title":{"rendered":"create_function &amp; other Errors"},"content":{"rendered":"<p>Hey Guys,<br \/>\nsince PHP 7.2, create_function has been deprecated and since PHP 8.0 this function has been removed.<\/p>\n<p>I changed Line 60 in getyourguide-widget.php to:<\/p>\n<pre><code>add_action( &#039;widgets_init&#039;, &#039;GetYourGuide_Widget&#039; );\nfunction GetYourGuide_Widget() { \n    register_widget( &#039;GetYourGuide_Widget&#039; );\n}<\/code><\/pre>\n<p>and so I can install the Plugin.<\/p>\n<p>Unfortunately, the blocks and widgets still bring errors to Gutenberg.<\/p>\n<p>The currency and language settings are not output either, but are saved.<br \/>\nDo you plan to fix this?<\/p>\n","protected":false},"template":"","class_list":["post-15058701","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15058701","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\/15058701\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15058701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}