[wp-hackers] Unicode url rewriting using add_rewrite_rule()
John Blackbourn
johnbillion+wp at gmail.com
Thu Dec 13 15:30:42 UTC 2012
On 13 December 2012 15:19, Deepak Mittal <dpac.mittal2 at gmail.com> wrote:
> The problem with this is, I want to catch all letters (\p{L}) and all
> numbers (\p{N}) from all languages. There's no way of doing that without
> using *UTF8 verb, or a 'u' modifier. So changing the question, does it look
> like something which can be included in future versions of wordpress since
> Unicode URLs are getting more popular?
It sounds to me like you're complicating things by trying to be overly
strict with your URL regex. Why not use a more lenient regex in the
URL such as '^analytics/([^/]+)/?$' and then move your Unicode logic
into PHP?
John
More information about the wp-hackers
mailing list