From 696a87d7f1fed12b284025409283cf12cc9c1a99 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sat, 23 Aug 2014 22:41:26 -0700 Subject: [PATCH] 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 --- RELEASE-NOTES-1.24 | 2 ++ includes/Setup.php | 4 ++++ 2 files changed, 6 insertions(+) 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 -- 2.20.1