Hard deprecate wfBCP47, which was soft deprecated in 1.31
authorC. Scott Ananian <cscott@cscott.net>
Tue, 26 Jun 2018 18:11:59 +0000 (14:11 -0400)
committerC. Scott Ananian <cananian@wikimedia.org>
Tue, 3 Jul 2018 14:04:45 +0000 (14:04 +0000)
Change-Id: I8632f08a8cb22641b5d16d955f3164dc45843520

includes/GlobalFunctions.php

index d9996f4..6f32ed1 100644 (file)
@@ -3103,6 +3103,7 @@ function wfShorthandToInteger( $string = '', $default = -1 ) {
  * @return string The language code which complying with BCP 47 standards.
  */
 function wfBCP47( $code ) {
+       wfDeprecated( __METHOD__, '1.31' );
        return LanguageCode::bcp47( $code );
 }