mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Merge "Allow 'wikitext' to be an empty string in save API"
This commit is contained in:
commit
42bc9f39bd
|
@ -261,8 +261,9 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
|
|||
$parserParams['oldid'] = $params['oldid'];
|
||||
}
|
||||
|
||||
if ( isset( $params['wikitext'] ) ) {
|
||||
$wikitext = $params['wikitext'];
|
||||
if ( !$wikitext ) {
|
||||
} else {
|
||||
$wikitext = $this->getWikitext( $title, $params, $parserParams );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue