Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -3461,7 +3461,7 @@ |
3462 | 3462 | function wfDeprecated( $function, $version = false, $component = false ) { |
3463 | 3463 | static $functionsWarned = array(); |
3464 | 3464 | |
3465 | | - if ( !isset( $functionsWarned[$function] ) ) { |
| 3465 | + if ( !in_array( $function, $GLOBALS['wgDeprecationWhitelist'] ) && !isset( $functionsWarned[$function] ) ) { |
3466 | 3466 | $functionsWarned[$function] = true; |
3467 | 3467 | |
3468 | 3468 | if ( $version ) { |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -4090,6 +4090,16 @@ |
4091 | 4091 | */ |
4092 | 4092 | $wgDeprecationReleaseLimit = '1.17'; |
4093 | 4093 | |
| 4094 | +/** |
| 4095 | + * Function name whitelist for wfDeprecated warnings. You will not be warned |
| 4096 | + * for usage of deprecated functions in this list. This is mainly usefull |
| 4097 | + * for extension developers unable to not use certain deprecated functions |
| 4098 | + * due to backward compatinility reasons. |
| 4099 | + * @since 1.19 |
| 4100 | + * @var array |
| 4101 | + */ |
| 4102 | +$wgDeprecationWhitelist = array(); |
| 4103 | + |
4094 | 4104 | /** Only record profiling info for pages that took longer than this */ |
4095 | 4105 | $wgProfileLimit = 0.0; |
4096 | 4106 | |