• I was running PHP7 compatibility checks on my WordPress projects and there was one issue with your plugin:

    File: wp-content/plugins/exploit-scanner/exploit-scanner.php
    > Line 960: PHP 4 constructors are now deprecated
        function ES_Text_Diff_Renderer()
        {
        }

    I think you should just add a PHP5-style constructor to the ES_Text_Diff_Renderer class:

    class ES_Text_Diff_Renderer extends Text_Diff_Renderer {
    
    	function __construct() {
    		parent::__construct();
    	}
    
    	/**
    	 * PHP4 constructor.
    	 */
    	function ES_Text_Diff_Renderer() {
    		self::__construct();
    	}

    https://www.ads-software.com/plugins/exploit-scanner/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m seeing the same errors. Is there a github repo for this plugin so others can submit pull requests and such? That could help speed up submitting new hash files as well.

    @slushman: This is not your topic and it is 5 months old. As per the Forum Welcome, please post your question in your own topic.

    @e2robert: I know this is an old post, but your the only one who’s posted a possible solution. Is that all the code that is needed? If so, as much as I don’t want to edit the plugin code, I think I can manage a change like that. Can you confirm if you tried the code you posted and if the plugin still functioned properly? Otherwise I may just have to try it myself and see how it turns out.

    @web2guru This is the same code change I’ve been using as well and yes it resolves the PHP7 warnings. It does not affect the plugin’s operation.

    Thread Starter Robert

    (@e2robert)

    Yep, the code worked for me and what is the best test: it also worked for @slushman

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP7 compatibility’ is closed to new replies.