From 87b092dc30b7cf5e427fa074d3d7dd2931540f2c Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sun, 17 Jan 2021 15:46:08 +0000 Subject: [PATCH] I18N: Add support for German (Austria) locale in `remove_accents()`. Props patopaiar, nonverbla. Fixes #52110. Built from https://develop.svn.wordpress.org/trunk@49967 git-svn-id: http://core.svn.wordpress.org/trunk@49668 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 ab88f55911..c3e1d42433 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -1537,7 +1537,7 @@ function utf8_uri_encode( $utf8_string, $length = 0 ) { * | U+1EF9 | ỹ | y | Latin small letter y with tilde | * * German (`de_DE`), German formal (`de_DE_formal`), German (Switzerland) formal (`de_CH`), - * and German (Switzerland) informal (`de_CH_informal`) locales: + * German (Switzerland) informal (`de_CH_informal`), and German (Austria) (`de_AT`) locales: * * | Code | Glyph | Replacement | Description | * | -------- | ----- | ----------- | --------------------------------------- | @@ -1577,6 +1577,7 @@ function utf8_uri_encode( $utf8_string, $length = 0 ) { * @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`. + * @since 5.7.0 Added locale support for `de_AT`. * * @param string $string Text that might have accent characters * @return string Filtered string with replaced "nice" characters. @@ -1919,7 +1920,7 @@ function remove_accents( $string ) { // Used for locale-specific rules. $locale = get_locale(); - if ( in_array( $locale, array( 'de_DE', 'de_DE_formal', 'de_CH', 'de_CH_informal' ), true ) ) { + if ( in_array( $locale, array( 'de_DE', 'de_DE_formal', 'de_CH', 'de_CH_informal', 'de_AT' ), true ) ) { $chars['Ä'] = 'Ae'; $chars['ä'] = 'ae'; $chars['Ö'] = 'Oe'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 707dc09769..fa2b743c1a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-alpha-49966'; +$wp_version = '5.7-alpha-49967'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.