wordpress-url-中包含中文无法显示-地址中包含中文无法显示

编辑文件
<code>
vim wp-includes/class-wp.php


181
182                         list( $req_uri ) = explode( '?', $_SERVER['REQUEST_URI'] );
183                         $req_uri=urldecode($req_uri);
184                         $self = $_SERVER['PHP_SELF'];
185                         $home_path = trim( parse_url( home_url(), PHP_URL_PATH ), '/' );
186                         $home_path_regex = sprintf( '|^%s|i', preg_quote( $home_path, '|' ) );
187

</code>
183行添加
$req_uri=urldecode($req_uri);



######################################################################################################
#最新修改方法
177                         $req_uri = urldecode($req_uri);
178                         $req_uri = str_replace($pathinfo, '', $req_uri);
179                         $req_uri = trim($req_uri, '/');
180                         $req_uri = preg_replace( $home_path_regex, '', $req_uri );
181                         $req_uri = trim($req_uri, '/');


url编码不能解析
保存后 再次访问正常


参考网址:http://www.zbolo.com/index.php/2016/05/12/wordpress中文链接、tag的404错误的最新解决方案/