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. Built from https://develop.svn.wordpress.org/trunk@55858 git-svn-id: http://core.svn.wordpress.org/trunk@55370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
956be813b6
commit
1dc049b06c
|
@ -1440,6 +1440,8 @@ function utf8_uri_encode( $utf8_string, $length = 0, $encode_ascii_characters =
|
|||
*
|
||||
* | Code | Glyph | Replacement | Description |
|
||||
* | -------- | ----- | ----------- | ----------------------------------------- |
|
||||
* | U+018F | Ə | E | Latin capital letter Ə |
|
||||
* | U+0259 | ǝ | e | Latin small letter ǝ |
|
||||
* | U+0218 | Ș | S | Latin capital letter S with comma below |
|
||||
* | U+0219 | ș | s | Latin small letter s with comma below |
|
||||
* | U+021A | Ț | T | Latin capital letter T with comma below |
|
||||
|
@ -1805,6 +1807,8 @@ function remove_accents( $text, $locale = '' ) {
|
|||
'ž' => 'z',
|
||||
'ſ' => 's',
|
||||
// Decompositions for Latin Extended-B.
|
||||
'Ə' => 'E',
|
||||
'ǝ' => 'e',
|
||||
'Ș' => 'S',
|
||||
'ș' => 's',
|
||||
'Ț' => 'T',
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-alpha-55857';
|
||||
$wp_version = '6.3-alpha-55858';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue