Hard deprecate non-Remex tidy modes

Let's rip the band-aid off.  Remex is pure PHP so there's no reason to
be running any of the other tidy implementations any more, and we won't
be able to support them in the future.

Follow-up to 7b23382823.

Bug: T198214
Change-Id: Id3d07d44f8434231826e86e623554cac3decfa96
This commit is contained in:
C. Scott Ananian 2018-09-20 17:27:59 -04:00
parent 1de7117197
commit a11a6f619f
2 changed files with 10 additions and 2 deletions

View file

@ -452,8 +452,8 @@ because of Phabricator reports.
in MediaWiki 1.26, have now been hard deprecated. This affects $wgUseTidy,
$wgTidyBin, $wgTidyConf, $wgTidyOpts, $wgTidyInternal, and $wgDebugTidy. Use
$wgTidyConfig instead.
* All Tidy configurations other than Remex have been deprecated; future parsers
will not emit compatible output for these configurations.
* All Tidy configurations other than Remex have been hard deprecated;
future parsers will not emit compatible output for these configurations.
=== Other changes in 1.32 ===
* (T198811) The following tables have had their UNIQUE indexes turned into

View file

@ -8,6 +8,14 @@ use MWException;
* @deprecated since 1.32, use RemexDriver
*/
abstract class RaggettBase extends TidyDriverBase {
function __construct( $config ) {
parent::__construct( $config );
// All tidy modes other than remex are deprecated.
wfDeprecated( __METHOD__, '1.32' );
}
/**
* Generic interface for wrapping and unwrapping HTML for Dave Raggett's tidy.
*