Skip to content

Commit 07ceb2a

Browse files
committed
General: add @SInCE etc, as suggested by SirLouen
1 parent 30810fb commit 07ceb2a

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

src/wp-includes/formatting.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

21522157
function uses_single_unicode_script( $input ) {

tests/phpunit/tests/formatting/sanitizeUser.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)