您的位置:首页 > 其它

一个标点符号解决WordPress在Windows+IIS主机下Tags不能用中文的问题

2010-09-09 09:33 369 查看
1.打开/wp-includes/rewrite.php 文件

2.找到下面的一段代码:

function get_tag_permastruct() {
if (isset($this->tag_structure)) {
return $this->tag_structure;
}
if (empty($this->permalink_structure)) {
$this->tag_structure = ”;
return false;
}
if (empty($this->tag_base))
$this->tag_structure = $this->front . ‘tag/’;
else
$this->tag_structure = $this->tag_base . ‘/’;
$this->tag_structure .= ‘%tag%’;
return $this->tag_structure;
......


3. 在其中找到 if (empty($this->permalink_structure)) {

并改为if (!empty($this->permalink_structure)) {

也就是在empty前面添加一个英文呢感叹号(!)。

4.保存,完事。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐