Remove global function wfBCP47, deprecated in 1.31
authorC. Scott Ananian <cscott@cscott.net>
Wed, 19 Jun 2019 19:00:09 +0000 (15:00 -0400)
committerJforrester <jforrester@wikimedia.org>
Thu, 20 Jun 2019 20:43:40 +0000 (20:43 +0000)
Change-Id: I8b9956bec18cc7bbc9aafeec124e6c1fef262dc6

RELEASE-NOTES-1.34
includes/GlobalFunctions.php

index 5d844e9..ae5a33a 100644 (file)
@@ -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 ===
index 759732f..5e2efbf 100644 (file)
@@ -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.
  *