Skip to content

Commit ad57ef6

Browse files
committed
Formatting: Add support for schwa in remove_accents().
This changeset adds support for schwa character. Ə (U+018F) and ə (U+0259) are part of Latin Extended-B and used in several languages like Azerbaijani or also in gender neutral Italian. Props suleymankenar, audrasjb, przemekhernik. Fixes #57609. git-svn-id: https://develop.svn.wordpress.org/trunk@55858 602fd350-edb4-49c9-b593-d223f7449a82
1 parent febce4a commit ad57ef6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/wp-includes/formatting.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,8 @@ function utf8_uri_encode( $utf8_string, $length = 0, $encode_ascii_characters =
14401440
*
14411441
* | Code | Glyph | Replacement | Description |
14421442
* | -------- | ----- | ----------- | ----------------------------------------- |
1443+
* | U+018F | Ə | E | Latin capital letter Ə |
1444+
* | U+0259 | ǝ | e | Latin small letter ǝ |
14431445
* | U+0218 | Ș | S | Latin capital letter S with comma below |
14441446
* | U+0219 | ș | s | Latin small letter s with comma below |
14451447
* | U+021A | Ț | T | Latin capital letter T with comma below |
@@ -1805,6 +1807,8 @@ function remove_accents( $text, $locale = '' ) {
18051807
'ž' => 'z',
18061808
'ſ' => 's',
18071809
// Decompositions for Latin Extended-B.
1810+
'Ə' => 'E',
1811+
'ǝ' => 'e',
18081812
'Ș' => 'S',
18091813
'ș' => 's',
18101814
'Ț' => 'T',

0 commit comments

Comments
 (0)