文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>一个标点符号解决WordPress在Windows+IIS主机下Tags不能用中文的问题

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

时间:2010-09-09  来源:golbz

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.保存,完事。

相关阅读 更多 +
排行榜 更多 +
别惹神枪手安卓版

别惹神枪手安卓版

冒险解谜 下载
坦克战争世界

坦克战争世界

模拟经营 下载
丛林反击战

丛林反击战

飞行射击 下载