content is not being preserved. 'fromsection-{slot}' and 'tosection-{slot}'
instead expand the given text as if for a section edit. This effectively
declines T183823 in favor of T185723.
+* (T198214) The 'disabletidy' parameter to action=parse has been
+ deprecated; untidy output will not be supported by future wikitext
+ parsers.
=== Action API internal changes in 1.32 ===
* Added 'ApiParseMakeOutputPage' hook.
],
'disablelimitreport' => false,
'disableeditsection' => false,
- 'disabletidy' => false,
+ 'disabletidy' => [
+ ApiBase::PARAM_DFLT => false,
+ ApiBase::PARAM_DEPRECATED => true, // Since 1.32
+ ],
'disablestylededuplication' => false,
'generatexml' => [
ApiBase::PARAM_DFLT => false,
$this->assertCount( 1, $res[0] );
} else {
$this->assertCount( 2, $res[0] );
- // This deliberately fails if there are extra warnings
- $this->assertSame( [ 'parse' => [ 'warnings' => $warnings ] ], $res[0]['warnings'] );
+ $this->assertSame( [ 'warnings' => $warnings ], $res[0]['warnings']['parse'] );
}
}
'disabletidy' => '',
] );
- $this->assertParsedTo( "<p><b>Mixed <i>up</b></i>\n</p>", $res2 );
+ $this->assertParsedTo( "<p><b>Mixed <i>up</b></i>\n</p>", $res2,
+ 'The parameter "disabletidy" has been deprecated.' );
}
public function testFormatCategories() {