报错提示:
Warning: Undefined array key “showall” in /../wp-content/plugins/srg_clean_archives/srg_clean_archives.php on line 82
Warning: Undefined array key “showall” in /../wp-content/plugins/srg_clean_archives/srg_clean_archives.php on line 95
Warning: Undefined array key “showall” in /../wp-content/plugins/srg_clean_archives/srg_clean_archives.php on line 107
后台查看,这个插件已经十几年没有更新了,查看代码报错原因简单明了,只需要修改对应的三行代码,防止无效调用。
在出现第一次错误之前先定义:
$showall = isset($_GET['showall']) ? $_GET['showall'] : false;
三处报错的地方把 $_GET['showall'] 替换成 $showall