From 6203ba8874a5431437892bd459e0feeaa685ff7f Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 10 Jan 2012 15:40:01 +0000 Subject: [PATCH] reverts $wgDeprecationWhitelist There is no point in ignoring a deprecated function. The call really need to be migrated OR the core function should not be deprecated if there is any kind of valid usage. If you really want to hide notifications, uses: $wgDevelopmentWarnings = false; Reverts r106993 r106946 --- includes/DefaultSettings.php | 10 ---------- includes/GlobalFunctions.php | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 9c96bd04e0..00f4371818 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -4107,16 +4107,6 @@ $wgDevelopmentWarnings = false; */ $wgDeprecationReleaseLimit = '1.17'; -/** - * Function name whitelist for wfDeprecated warnings. You will not be warned - * for usage of deprecated functions in this list. This is mainly useful - * for extension developers unable to not use certain deprecated functions - * due to backward compatibility reasons. - * @since 1.19 - * @var array - */ -$wgDeprecationWhitelist = array(); - /** Only record profiling info for pages that took longer than this */ $wgProfileLimit = 0.0; diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index db2ff35cd8..a61420dcf9 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -3463,7 +3463,7 @@ function wfDeprecated( $function, $version = false, $component = false ) { MWDebug::deprecated( $function, $version, $component ); - if ( !in_array( $function, $GLOBALS['wgDeprecationWhitelist'] ) && !isset( $functionsWarned[$function] ) ) { + if ( !isset( $functionsWarned[$function] ) ) { $functionsWarned[$function] = true; if ( $version ) { -- 2.20.1