GlobalFunctions: Hard-deprecate wfUseMW, unused
authorJames D. Forrester <jforrester@wikimedia.org>
Sat, 28 Jul 2018 23:59:08 +0000 (16:59 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Sat, 28 Jul 2018 23:59:08 +0000 (16:59 -0700)
Change-Id: Ifa532f2fb7d482238e4b922f622a79b9ab6540e8

RELEASE-NOTES-1.32
includes/GlobalFunctions.php

index 00ee8a3..bbcd6c2 100644 (file)
@@ -303,6 +303,7 @@ because of Phabricator reports.
   do your own lookup for page/content. mNewRev / mOldRev remains public.
 * The $wgExternalDiffEngine value 'wikidiff2' is deprecated. To use wikidiff2
   just enable the PHP extension, and it will be autodetected.
+* The wfUseMW function, soft-deprecated in 1.26, is now hard deprecated.
 
 === Other changes in 1.32 ===
 * (T198811) The following tables have had their UNIQUE indexes turned into
index aa8aee5..4a09b9c 100644 (file)
@@ -2529,6 +2529,8 @@ function wfUsePHP( $req_ver ) {
 function wfUseMW( $req_ver ) {
        global $wgVersion;
 
+       wfDeprecated( __FUNCTION__, '1.26' );
+
        if ( version_compare( $wgVersion, (string)$req_ver, '<' ) ) {
                throw new MWException( "MediaWiki $req_ver required--this is only $wgVersion" );
        }