适用于WP5.6中文版,亲测有效。
打开文件 【网站根目录/wp-includes/formatting.php】,查找到sanitize_user函数,将其中的
2106-2108行:
if ( $strict ) {
$username = preg_replace( ‘|[^a-z0-9 _.-@]|i’, ”, $username );
}
修改为:
if ( $strict ) {
$username = preg_replace( ‘|[^a-zp{Han}0-9 _.-@]|iu‘, ”, $username );
}
需要修改的,见红字。
以后每次升级wordpress都要设置一下。
Thanks for sharing your thoughts about wordpress.
Regards
Fastidious response in return of this query with solid arguments and telling all regarding that.
Hello to every body, it’s my first pay a quick visit of this weblog; this
website consists of awesome and really excellent data for readers.
Stunning story there. What occurred after? Thanks!