Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -3463,7 +3463,7 @@ |
3464 | 3464 | |
3465 | 3465 | MWDebug::deprecated( $function, $version, $component ); |
3466 | 3466 | |
3467 | | - if ( !isset( $functionsWarned[$function] ) ) { |
| 3467 | + if ( !in_array( $function, $GLOBALS['wgDeprecationWhitelist'] ) && !isset( $functionsWarned[$function] ) ) { |
3468 | 3468 | $functionsWarned[$function] = true; |
3469 | 3469 | |
3470 | 3470 | if ( $version ) { |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -4101,6 +4101,16 @@ |
4102 | 4102 | */ |
4103 | 4103 | $wgDeprecationReleaseLimit = '1.17'; |
4104 | 4104 | |
| 4105 | +/** |
| 4106 | + * Function name whitelist for wfDeprecated warnings. You will not be warned |
| 4107 | + * for usage of deprecated functions in this list. This is mainly useful |
| 4108 | + * for extension developers unable to not use certain deprecated functions |
| 4109 | + * due to backward compatibility reasons. |
| 4110 | + * @since 1.19 |
| 4111 | + * @var array |
| 4112 | + */ |
| 4113 | +$wgDeprecationWhitelist = array(); |
| 4114 | + |
4105 | 4115 | /** Only record profiling info for pages that took longer than this */ |
4106 | 4116 | $wgProfileLimit = 0.0; |
4107 | 4117 | |