reverts wgDeprecationWhitelist
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 16 Jan 2012 08:59:17 +0000 (08:59 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 16 Jan 2012 08:59:17 +0000 (08:59 +0000)
Per wikitech-l
Reverts r106883 and r106946

includes/DefaultSettings.php
includes/GlobalFunctions.php

index 4507c09..3fec4c8 100644 (file)
@@ -4102,16 +4102,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;
 
index db2ff35..a61420d 100644 (file)
@@ -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 ) {