Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -3457,7 +3457,7 @@ |
3458 | 3458 | function wfDeprecated( $function, $version = false, $component = false ) { |
3459 | 3459 | static $functionsWarned = array(); |
3460 | 3460 | |
3461 | | - if ( !isset( $functionsWarned[$function] ) ) { |
| 3461 | + if ( !in_array( $function, $GLOBALS['wgDeprecationWhitelist'] ) && !isset( $functionsWarned[$function] ) ) { |
3462 | 3462 | $functionsWarned[$function] = true; |
3463 | 3463 | |
3464 | 3464 | if ( $version ) { |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -4068,6 +4068,12 @@ |
4069 | 4069 | */ |
4070 | 4070 | $wgDeprecationReleaseLimit = '1.17'; |
4071 | 4071 | |
| 4072 | +/** |
| 4073 | + * Function name whitelist for wfDeprecated warnings. You will not be warned |
| 4074 | + * for usage of deprecated functions in this list. |
| 4075 | + */ |
| 4076 | +$wgDeprecationWhitelist = array(); |
| 4077 | + |
4072 | 4078 | /** Only record profiling info for pages that took longer than this */ |
4073 | 4079 | $wgProfileLimit = 0.0; |
4074 | 4080 | |