- 找到目錄
wp-includes/class-wp.php
- 搜尋
$_SERVER['PATH_INFO']
- 找到
$pathinfo = isset( $_SERVER['PATH_INFO'] ) ? $_SERVER['PATH_INFO'] : '';
下方新增
$pathinfo = isset( $_SERVER['PATH_INFO'] ) ? mb_convert_encoding($_SERVER['PATH_INFO'], "UTF-8", "Big5"): '';
- 搜尋
$_SERVER['REQUEST_URI']
- 找到
list( $req_uri ) = explode( '?', $_SERVER['REQUEST_URI'] );
下方新增
list( $req_uri ) = explode( '?', mb_convert_encoding($_SERVER['REQUEST_URI'], "UTF-8", "Big5") );
如圖: