From: C. Scott Ananian Date: Wed, 19 Jun 2019 19:00:09 +0000 (-0400) Subject: Remove global function wfBCP47, deprecated in 1.31 X-Git-Tag: 1.34.0-rc.0~1322 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=1cb3851f0ae514bdf1f10d3bcfc8279965bb9ca1;p=lhc%2Fweb%2Fwiklou.git Remove global function wfBCP47, deprecated in 1.31 Change-Id: I8b9956bec18cc7bbc9aafeec124e6c1fef262dc6 --- diff --git a/RELEASE-NOTES-1.34 b/RELEASE-NOTES-1.34 index 5d844e94fa..ae5a33a63b 100644 --- a/RELEASE-NOTES-1.34 +++ b/RELEASE-NOTES-1.34 @@ -221,6 +221,7 @@ because of Phabricator reports. * WebInstallerOutput::addWikiText(), deprecated in 1.32, has been removed. * Parser::fetchFile(), deprecated in 1.32, has been removed. Use the method Parser::fetchFileAndTitle() instead. +* The global function wfBCP47, deprecated in 1.31, has been removed. * … === Deprecations in 1.34 === diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 759732f8a2..5e2efbfee9 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2885,21 +2885,6 @@ function wfShorthandToInteger( $string = '', $default = -1 ) { return $val; } -/** - * Get the normalised IETF language tag - * See unit test for examples. - * See mediawiki.language.bcp47 for the JavaScript implementation. - * - * @deprecated since 1.31, use LanguageCode::bcp47() directly. - * - * @param string $code The language code. - * @return string The language code which complying with BCP 47 standards. - */ -function wfBCP47( $code ) { - wfDeprecated( __METHOD__, '1.31' ); - return LanguageCode::bcp47( $code ); -} - /** * Get a specific cache object. *