From bee96601bdfc3cfbd50e5d6c0a82d41370a2c339 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 21 Jan 2017 17:16:43 +0000 Subject: [PATCH] I18N: Add support for Bosnian locale in `remove_accents()`. Applies "letter D with stroke" replacement made in [38646] for Serbian (`sr_RS`) to Bosnian (`bs_BA`) as well. Props H3llas for the report. Fixes #39658. Built from https://develop.svn.wordpress.org/trunk@39939 git-svn-id: http://core.svn.wordpress.org/trunk@39876 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 5 +++-- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 7b6900e8bf..657f52e9d9 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -1496,7 +1496,7 @@ function utf8_uri_encode( $utf8_string, $length = 0 ) { * | -------- | ----- | ----------- | --------------------------------------- | * | U+00B7 | l·l | ll | Flown dot (between two Ls) | * - * Serbian (`sr_RS`) locale: + * Serbian (`sr_RS`) and Bosnian (`bs_BA`) locale: * * | Code | Glyph | Replacement | Description | * | -------- | ----- | ----------- | --------------------------------------- | @@ -1506,6 +1506,7 @@ function utf8_uri_encode( $utf8_string, $length = 0 ) { * @since 1.2.1 * @since 4.6.0 Added locale support for `de_CH`, `de_CH_informal`, and `ca`. * @since 4.7.0 Added locale support for `sr_RS`. + * @since 4.8.0 Added locale support for `bs_BA`. * * @param string $string Text that might have accent characters * @return string Filtered string with replaced "nice" characters. @@ -1711,7 +1712,7 @@ function remove_accents( $string ) { $chars[ 'å' ] = 'aa'; } elseif ( 'ca' === $locale ) { $chars[ 'l·l' ] = 'll'; - } elseif ( 'sr_RS' === $locale ) { + } elseif ( 'sr_RS' === $locale || 'bs_BA' === $locale ) { $chars[ 'Đ' ] = 'DJ'; $chars[ 'đ' ] = 'dj'; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 2102a14abd..794f41fb78 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-39938'; +$wp_version = '4.8-alpha-39939'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.