ApiVisualEditor: Defensively check that query prop revisions returns arrays

I can't see where this would return a string, but users are reporting that
they're getting that at times…

Bug: T193718
Change-Id: I6b635bacdd59431568bc5c679e455f67cb764df0
(cherry picked from commit d4841abbb6aaa1b62fd25435e852554482971780)
1 file changed
tree: 17061a436d63423abfa7f6dc22588af495846b88
  1. .eslintrc.json
  2. .gitignore
  3. .gitmodules
  4. .gitreview
  5. .jsduck/
  6. .mailmap
  7. .phpcs.xml
  8. .rubocop.yml
  9. .rubocop_todo.yml
  10. AUTHORS.txt
  12. Gemfile
  13. Gemfile.lock
  14. Gruntfile.js
  15. LICENSE.txt
  16. README.md
  17. Rakefile
  18. VisualEditor.i18n.alias.php
  19. VisualEditor.php
  20. bin/
  21. build/
  22. composer.json
  23. extension.json
  24. i18n/
  25. images/
  26. includes/
  27. jsduck.json
  28. lib/
  29. maintenance/
  30. modules/
  31. package.json
  32. screenshots/

devDependency Status


VisualEditor provides a visual editor for wiki pages. It is written in JavaScript and runs in a web browser.

It uses the Parsoid parser to convert wikitext documents to annotated HTML which the VisualEditor is able to load, modify and emit back to Parsoid at which point it is converted back into wikitext.

For more information about these projects, check out the VisualEditor and Parsoid pages on mediawiki.

Developing and installing

For information on installing VisualEditor on a local wiki, please see https://www.mediawiki.org/wiki/Extension:VisualEditor

For information about running tests and contributing code to VisualEditor, see CONTRIBUTING.md. Patch submissions are reviewed and managed with Gerrit. There is also API documentation available for the VisualEditor.