Hard deprecate $wgTidyConfig['driver'] = 'disabled'
authorC. Scott Ananian <cscott@cscott.net>
Fri, 26 Oct 2018 02:02:47 +0000 (22:02 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Fri, 26 Oct 2018 02:20:49 +0000 (22:20 -0400)
This was already deprecated in the release notes, and is not used in
production, but I'd overlooked adding an appropriate hard deprecation
notice in MWTidy::factory() to notify downstream users.

Change-Id: I8f4d8154a1d8a233017f54f0fb4bcfdf4a0373e1

RELEASE-NOTES-1.32
includes/parser/MWTidy.php

index 8ccc9c2..2cd1222 100644 (file)
@@ -598,6 +598,7 @@ because of Phabricator reports.
   $wgTidyConfig instead.
 * All Tidy configurations other than Remex have been hard deprecated;
   future parsers will not emit compatible output for these configurations.
+  In particular, running MediaWiki with tidy disabled has been deprecated.
 * (T198214) OutputPage::addWikiText(), OutputPage::addWikiTextWithTitle(),
   and OutputPage::addWikiTextTitle() have been deprecated, since they
   can result in untidy output.  In addition OutputPage::addWikiTextTidy()
index a73c28c..8881786 100644 (file)
@@ -117,6 +117,7 @@ class MWTidy {
                                $instance = new MediaWiki\Tidy\RemexDriver( $config );
                                break;
                        case 'disabled':
+                               wfDeprecated( '"disabled" tidy driver', '1.32' );
                                return false;
                        default:
                                throw new MWException( "Invalid tidy driver: \"{$config['driver']}\"" );