mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "[BREAKING CHANGE] Drop MW pre-1.25 PHP API documentation compatibility"
This commit is contained in:
commit
31e4982256
|
@ -698,27 +698,4 @@ class ApiVisualEditor extends ApiBase {
|
|||
public function isWriteMode() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since MediaWiki core 1.25
|
||||
*/
|
||||
public function getParamDescription() {
|
||||
return array(
|
||||
'page' => 'The page to perform actions on.',
|
||||
'paction' => 'Action to perform',
|
||||
'oldid' => 'The revision number to use (defaults to latest version).',
|
||||
'html' => 'HTML to send to Parsoid to convert to wikitext',
|
||||
'wikitext' => 'Wikitext to send to Parsoid to convert to HTML (paction=parsefragment)',
|
||||
'pst' => 'Pre-save transform wikitext before sending it to Parsoid (paction=parsefragment)',
|
||||
'cachekey' => 'For serialize or diff, use the result of a previous serializeforcache'
|
||||
. ' request with this key. Overrides html.',
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since MediaWiki core 1.25
|
||||
*/
|
||||
public function getDescription() {
|
||||
return 'Returns HTML5 for a page from RESTBase or the Parsoid service.';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -276,35 +276,4 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
|
|||
public function isWriteMode() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since MediaWiki core 1.25
|
||||
*/
|
||||
public function getParamDescription() {
|
||||
return array(
|
||||
'page' => 'The page to perform actions on.',
|
||||
'oldid' => 'The revision number to use. Defaults to latest revision. Use 0 for new page.',
|
||||
'minor' => 'Flag for minor edit.',
|
||||
'html' => 'HTML to send to Parsoid in exchange for wikitext',
|
||||
'etag' => 'ETag to send',
|
||||
'summary' => 'Edit summary',
|
||||
'basetimestamp' => 'When saving, set this to the timestamp of the revision that was'
|
||||
. ' edited. Used to detect edit conflicts.',
|
||||
'starttimestamp' => 'When saving, set this to the timestamp of when the page was loaded.'
|
||||
. ' Used to detect edit conflicts.',
|
||||
'token' => 'Edit token',
|
||||
'captchaid' => 'Captcha ID (when saving with a captcha response).',
|
||||
'captchaword' => 'Answer to the captcha (when saving with a captcha response).',
|
||||
'cachekey' => 'Use the result of a previous serializeforcache request with this key.'
|
||||
. 'Overrides html.',
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since MediaWiki core 1.25
|
||||
*/
|
||||
public function getDescription() {
|
||||
return 'Save an HTML5 page to MediaWiki (converted to wikitext via RESTBase or the ' .
|
||||
'Parsoid service).';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue