转载于:http://jingyan.baidu.com/album/7e440953f7d6512fc1e2ef47.html
在wp-includs文件夹下面,找到rewrite.php文件
用编辑器打开 搜索找到function get_extra_permastruct($name)
代码如下:
public function get_extra_permastruct($name) {
if ( empty($this->permalink_structure) )
return false;
if ( isset($this->extra_permastructs[$name]) )
return $this->extra_permastructs[$name]['struct'];
return false;
}
修改为
public function get_extra_permastruct($name) {
if ( !empty($this->permalink_structure) )
return false;
if ( isset($this->extra_permastructs[$name]) )
return $this->extra_permastructs[$name]['struct'];
return false;
}
其实就改个这:
Fixed!