{"id":6903505,"date":"2016-01-04T09:31:00","date_gmt":"2016-01-04T09:31:00","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php7-compatibility-12\/"},"modified":"2016-08-31T00:00:42","modified_gmt":"2016-08-31T00:00:42","slug":"php7-compatibility-12","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php7-compatibility-12\/","title":{"rendered":"PHP7 compatibility"},"content":{"rendered":"<p>I was running PHP7 compatibility checks on my WordPress projects and there was one issue with your plugin:<\/p>\n<pre><code>File: wp-content\/plugins\/exploit-scanner\/exploit-scanner.php\n&gt; Line 960: PHP 4 constructors are now deprecated\n    function ES_Text_Diff_Renderer()\n    {\n    }<\/code><\/pre>\n<p>I think you should just add a PHP5-style constructor to the <code>ES_Text_Diff_Renderer<\/code> class:<\/p>\n<pre><code>class ES_Text_Diff_Renderer extends Text_Diff_Renderer {\n\n\tfunction __construct() {\n\t\tparent::__construct();\n\t}\n\n\t\/**\n\t * PHP4 constructor.\n\t *\/\n\tfunction ES_Text_Diff_Renderer() {\n\t\tself::__construct();\n\t}<\/code><\/pre>\n<p>https:\/\/wordpress.org\/plugins\/exploit-scanner\/<\/p>\n","protected":false},"template":"","class_list":["post-6903505","topic","type-topic","status-publish","hentry","topic-tag-compatibility","topic-tag-incompatible","topic-tag-php7","topic-tag-scanner"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6903505","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\/6903505\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6903505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}