• 博客园logo
  • 会员
  • 周边
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
golbz
博客园    首页    新随笔    联系   管理    订阅  订阅

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

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

posted @ 2010-09-09 09:33  golbz  阅读(328)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3