win主机下wordpress不支持中文标签的解决办法
Posted by 荒野无灯 @ 七月 10, 2010 at 9:40 下午 under wp问题 2 Comments
今天WP中文论坛一网友问我win主机下wordpress不支持中文标签问题如何解决,GOOGLE之,解决办法如下:
修改wp-includes/rewrite.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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 = trailingslashit( $this->front . 'tag' ); else $this->tag_structure = trailingslashit( '/' . $this->root . $this->tag_base ); $this->tag_structure .= '%tag%'; return $this->tag_structure; } |
1 2 3 4 |
这里的判断加个 ! 号即可 ,即变成 :
1 2 3 4 |
喜欢这篇文章吗?
请订阅本站 RSS feed
随机日志
Comments (2)




win主机跑php,装wp,本身就是一件吐槽的事情
那确实 。