File tree Expand file tree Collapse file tree
tests/phpunit/tests/formatting Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2145,8 +2145,13 @@ function sanitize_file_name( $filename ) {
21452145 * the first block for that script, and then checks that the string
21462146 * uses only a single block. This works for the scripts currently in
21472147 * Unicode, and will work for future scripts as long as the committee
2148- * keeps estimating correctly , so there's only one block for each
2148+ * keeps estimating high enough , so there's only one block for each
21492149 * future script.
2150+ *
2151+ * @since 6.9.0
2152+ *
2153+ * @param $input A string to check
2154+ * @return true if all letters in the string belong to the same unicode script, and false if letters fromm two more more scripts are included.
21502155 */
21512156
21522157function uses_single_unicode_script ( $ input ) {
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ public function test_strips_encoded_ampersand_when_followed_by_semicolon() {
3838 }
3939
4040 /*
41+ * Some languages use the Latin alphabet with various accents.
42+ * The city Münster is in Germany, Orléans is in France. This
43+ * test checks that an author (a user name) can use an accent.
44+ *
4145 * @ticket 31992
4246 */
4347
@@ -65,6 +69,13 @@ public function test_accepts_all_arabic() {
6569 }
6670
6771 /*
72+ * Some languages use the Latin alphabet with various
73+ * extra letters. The city Bodø is in Norway, Gießen in
74+ * Germany. This test checks that an author (a user name) can
75+ * use such an extended Latin letter. (The letter used, ɔ, is
76+ * like the o in top, and used in various countries in West
77+ * Africa.)
78+ *
6879 * @ticket 31992
6980 */
7081
@@ -80,6 +91,13 @@ public function test_accepts_west_african_latin() {
8091 }
8192
8293 /*
94+ * Some people are worried about using letters that look alike
95+ * from different alphabets, for example the Cyrillic V looks
96+ * exactly like the Latin B. If any user names use confusable
97+ * letters like that pair, people are sure to have trouble
98+ * logging in, so we try to prevent people from painting
99+ * themselves into that corner.
100+ *
83101 * @ticket 31992
84102 */
85103
You can’t perform that action at this time.
0 commit comments