Push msg from ContextSource/RequestContext into IContextSource
[lhc/web/wiklou.git] / includes / GlobalFunctions.php
index a61420d..db2ff35 100644 (file)
@@ -3463,7 +3463,7 @@ function wfDeprecated( $function, $version = false, $component = false ) {
 
        MWDebug::deprecated( $function, $version, $component );
 
-       if ( !isset( $functionsWarned[$function] ) ) {
+       if ( !in_array( $function, $GLOBALS['wgDeprecationWhitelist'] ) && !isset( $functionsWarned[$function] ) ) {
                $functionsWarned[$function] = true;
                
                if ( $version ) {