优秀主题modernize如何适应php7

modernize主题速度快,搭建简单,但是作者从2015年底就没有再更新主题,如果使用php7,网站会打不开,解决办法如下。

大约85行,移除一下代码

    if(!class_exists('ReallySimpleCaptcha')) {
        $temp_root = get_root_directory('include/plugin/really-simple-captcha/really-simple-captcha.php');
        include_once($temp_root . 'include/plugin/really-simple-captcha/really-simple-captcha.php'); // capcha comment plugin class
    }

大约107行,移除以下代码

        $temp_root = get_root_directory('include/plugin/really-simple-captcha/cbnet-really-simple-captcha-comments.php');
        include_once($temp_root . 'include/plugin/really-simple-captcha/cbnet-really-simple-captcha-comments.php'); // capcha comment plugin