Set $wgIncludeLegacyJavaScript false by default
authorJames D. Forrester <jforrester@wikimedia.org>
Wed, 16 Mar 2016 10:53:33 +0000 (10:53 +0000)
committerKrinkle <krinklemail@gmail.com>
Thu, 24 Mar 2016 18:49:47 +0000 (18:49 +0000)
This setting was deprecated in 0ac4f998 but was left as true by default, which
means sysadmins weren't prompted to find and fix faulty code. Setting this to
false by default gives them a release in which to fix the code (setting this
back to true until such fixes are made) before we remove it entirely in the
next MediaWiki release. Extensions, skins, gadgets and scripts that need the
mediawiki.legacy.wikibits module should express a dependency on it in their
ResourceLoader manifest.

Bug: T35836
Change-Id: If787d0975b6019827e81f4ea0d90898e361d9acd

RELEASE-NOTES-1.27
includes/DefaultSettings.php

index 2f8f53a..ac19d39 100644 (file)
@@ -104,6 +104,9 @@ HHVM 3.1.
 * $wgPreloadJavaScriptMwUtil was removed (deprecated in 1.26).
   Extensions, skins, gadgets and scripts that use the mediawiki.util module must
   express a dependency on it.
+* $wgIncludeLegacyJavaScript, deprecated in MediaWiki 1.26, now defaults false.
+  Extensions, skins, gadgets and scripts that need the mediawiki.legacy.wikibits
+  module should express a dependency on it.
 
 === New features in 1.27 ===
 * $wgDataCenterUpdateStickTTL was also added. This decides how long a user
index 63d04c9..33b1654 100644 (file)
@@ -3562,7 +3562,7 @@ $wgResourceLoaderMinifierMaxLineLength = 1000;
  *
  * @deprecated since 1.26: Always declare dependencies.
  */
-$wgIncludeLegacyJavaScript = true;
+$wgIncludeLegacyJavaScript = false;
 
 /**
  * Whether or not to assign configuration variables to the global window object.