From: Kunal Mehta Date: Sun, 24 Aug 2014 05:41:26 +0000 (-0700) Subject: Deprecate $wgDeferredUpdateList X-Git-Tag: 1.31.0-rc.0~14294^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=696a87d7f1fed12b284025409283cf12cc9c1a99;p=lhc%2Fweb%2Fwiklou.git Deprecate $wgDeferredUpdateList Callers should instead use DeferredUpdates::addUpdate. The function is superior because it is able to enforce type-hinting rather than throwing a fatal error. Also it's not a global :) The only extension still using the global is FlaggedRevs, for which I've submitted I1a7c6540b2. Change-Id: Ic59c90c0d0131039295bd785280dc70ebde6e40f --- diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24 index 32ce12b626..cd4e6680c8 100644 --- a/RELEASE-NOTES-1.24 +++ b/RELEASE-NOTES-1.24 @@ -63,6 +63,8 @@ production. * The default thumb size ($wgDefaultUserOptions['thumbsize']) is now 300px, up from 180px. If you have altered the number of entries in $wgThumbLimits for your wiki, you may need to adjust your default user settings to compensate for the index change. +* $wgDeferredUpdateList is now deprecated, you should use DeferredUpdates::addUpdate() + instead. === New features in 1.24 === * Added a new hook, "WhatLinksHereProps", to allow extensions to annotate diff --git a/includes/Setup.php b/includes/Setup.php index 0c5cf92a86..acceb59d04 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -595,6 +595,10 @@ if ( !is_object( $wgAuth ) ) { */ $wgTitle = null; +/** + * @deprecated 1.24 Use DeferredUpdates::addUpdate instead + * @var array + */ $wgDeferredUpdateList = array(); // Disable all other email settings automatically if $wgEnableEmail