Wordpress RSS XML空间错误
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Wordpress RSS XML空间错误相关的知识,希望对你有一定的参考价值。
Allows you to remove the whitespace that can appear before the xml tag in wordpress files such as wp-includes/feed-rss2.php
// find these lines in the php file (ie, feed-rss2.php) header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); $more = 1; // immediately add these 3 lines after $out = ob_get_contents(); $out = str_replace(array(" ", " ", " ", " "), "", $input); ob_end_clean();
以上是关于Wordpress RSS XML空间错误的主要内容,如果未能解决你的问题,请参考以下文章