{"id":17151064,"date":"2023-10-25T21:02:57","date_gmt":"2023-10-25T21:02:57","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-8-fix\/"},"modified":"2023-10-25T21:02:57","modified_gmt":"2023-10-25T21:02:57","slug":"php-8-fix","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-8-fix\/","title":{"rendered":"PHP 8 Fix"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The fix to make this work in PHP 8+ is to replace<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">function MediaTags<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">with<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">function __construct<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">in media_tags.php.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Not sure why I can&#8217;t reply to the existing topic about PHP 8 but leaving this here in case anyone else runs into the issue.<\/p>\n","protected":false},"template":"","class_list":["post-17151064","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17151064","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\/17151064\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17151064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}