*/
$wgDeprecationReleaseLimit = '1.17';
+/**
+ * Function name whitelist for wfDeprecated warnings. You will not be warned
+ * for usage of deprecated functions in this list.
+ */
+$wgDeprecationWhitelist = array();
+
/** Only record profiling info for pages that took longer than this */
$wgProfileLimit = 0.0;
function wfDeprecated( $function, $version = false, $component = false ) {
static $functionsWarned = array();
- if ( !isset( $functionsWarned[$function] ) ) {
+ if ( !in_array( $function, $GLOBALS['wgDeprecationWhitelist'] ) && !isset( $functionsWarned[$function] ) ) {
$functionsWarned[$function] = true;
if ( $version ) {