{"id":15865471,"date":"2022-07-27T22:14:51","date_gmt":"2022-07-27T22:14:51","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php8-change\/"},"modified":"2022-07-27T22:14:51","modified_gmt":"2022-07-27T22:14:51","slug":"php8-change","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php8-change\/","title":{"rendered":"PHP8 Change"},"content":{"rendered":"<p>This hasn&#8217;t been updated in years, so obviously it would be better to find a supported plugin to do the same thing, but if you just want to get it working in PHP8, go in to subpage-listing.php and change the last couple of lines to:<\/p>\n<p>\/\/ doing it this way for compatibility with the Preformatted plugin<br \/>\nadd_filter(&#8216;init&#8217;, function($a) { add_filter(&#8216;the_content&#8217;, &#8216;txfx_wp_subpage_display&#8217;, 9); });<\/p>\n<p>That should fix it.  create_function isn&#8217;t supported in PHP8 (nor should it be&#8230; *shudder*)<\/p>\n","protected":false},"template":"","class_list":["post-15865471","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15865471","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\/15865471\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15865471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}