A website that has been put on hold for a long time finally found a suitable template yesterday, which also means that the website may have to be started recently.
Then a small problem is that Chinese user names are not supported during user registration. The website is intended to interact with each other...
SO you have to find a solution to this problem ..
In fact, it is also very easy to search the Internet, the Chinese tutorials are almost the same to modify the WordPress source file formatting. php
How to change it? I also found the simplest piece of code.
Copy the following php code to functions. php in the current topic directory,
WordPress supports registering and logging on with a Chinese user name.
The code is as follows: |
Copy code |
Function ludou_non_strict_login ($ username, $ raw_username, $ strict ){ If (! $ Strict) Return $ username; Return sanitize_user (stripslashes ($ raw_username), false ); } Add_filter ('sanitize _ user', 'ludou _ non_strict_login ', 10, 3 ); |
The website you are interested in can see the circle cross love original from: http://www.qinghuo.net/web/wordpress/3056.html