Commit fb001aa
committed
General: Add a test to check that unicode generally survives in slugs
Until now, WordPress generated all-ASCII slugs, which works well for
mostly-ASCII languages. Now that WordPress supports scripts like
Devanagari much better, it's necessary to test the slug support for
Devanagari. What WordPress did until now works well for Devanagari, so
this commit merely adds a unit test.
The ideal is to have links such as
<hebrewdomain>.<hebrewtld>/<hebrewpath>
which is shown onscreen as
<hebrewpath>/<hebrewtld>.<hebrewdomain>
without any switches between right-to-left Hebrew and left-to-right Latin.
/author/ and a few others don't achieve that ideal. Yet.
Note that there is a rare existing bug: The existing mapping to ASCII can
produce the same slug for two pages, since two letters can map to e.g.
'L'. This seems unfixable, since any change might break existing links,
but happily also extremely rare.1 parent 435db5a commit fb001aa
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
0 commit comments