修复PHP7.2以上版本Count()错误0 最近因为更新wordpress5.2 经常出现代码报错,所以打开了DEBUG,在文章页面上出现了Warning: count(): Parameter must be an array or an object that implements Countable in post-template.php 310 行错误。 我不是技术人员,但不希望错误,Google查阅后,自己修改后就不再报错了。