wordpress 1.5.1.3关于content type的一个bug
Contents
症状:IE等浏览器,在访问wordpress 1.5.1.3架设的站点时,显示下载本页面文件的窗口,而不是正常显示页面内容。 分析:用Firefox查看Response headers,发现Content-type为空。 原因:不详,疑为某处代码问题。 解决方案:在模板的head.php内加入:
<?php header(“Content-Type: text/html; charset=“.bloginfo(‘charset’));?>
Author
LastMod 2005-07-09