Skip to content

Commit c2b6d30

Browse files
committed
General: Correct handling of Korean.
1 parent a85a154 commit c2b6d30

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/wp-includes/formatting.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,10 +2220,11 @@ function uses_single_unicode_script( string $input ): bool {
22202220
case IntlChar::BLOCK_CODE_DEVANAGARI_EXTENDED:
22212221
$b = IntlChar::BLOCK_CODE_DEVANAGARI;
22222222
break;
2223-
case IntlChar::BLOCK_CODE_HANGUL_JAMO:
2223+
case IntlChar::BLOCK_CODE_HANGUL_COMPATIBILITY_JAMO:
22242224
case IntlChar::BLOCK_CODE_HANGUL_JAMO_EXTENDED_A:
22252225
case IntlChar::BLOCK_CODE_HANGUL_JAMO_EXTENDED_B:
2226-
$b = IntlChar::BLOCK_CODE_HANGUL;
2226+
case IntlChar::BLOCK_CODE_HANGUL_SYLLABLES:
2227+
$b = IntlChar::BLOCK_CODE_HANGUL_JAMO;
22272228
break;
22282229
case IntlChar::BLOCK_CODE_MYANMAR_EXTENDED_A:
22292230
case IntlChar::BLOCK_CODE_MYANMAR_EXTENDED_B:

tests/phpunit/tests/formatting/antispambot.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class Tests_Formatting_antispambot extends WP_UnitTestCase {
1010
/**
1111
* This is basically a driveby test. While working on ticket
1212
* 31992 I noticed that there was no unit testing for
13-
* antispambot, so I added a little, just so I'd leave
14-
* the code better than I found it.
13+
* antispambot, so I added a little, just so I'd leave the code
14+
* better than I found it.
1515
*
1616
* @ticket 31992
1717
*

0 commit comments

Comments
 (0)