最近检查了一下本站的一些设置,偶然发现打开本站的sitemap的时候,出现错误,提示如下:
This page contains the following errors:
error on line * at column *: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.

后来发现,是之前在调整主题模板函数文件functions.php的时候,在开头多输入了三个回车。把这三个回车键删掉就恢复正常了。

另外,这个删除操作顺带解决了本站一些插件出现已完成更新但仍有更新提示、无法取消提示的问题。