API: Fix action=parse without any page or title or text
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 10 May 2013 15:59:11 +0000 (11:59 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 14 Jun 2013 00:58:27 +0000 (20:58 -0400)
commit484770e8d2f8f768f07917a2ede1dbe0aba3ddf5
tree7c6ad710309f074ad42858cb85e6a5d8dd64481e
parent181f26c2d3018baed7c5fd239cd6dddb697b43ca
API: Fix action=parse without any page or title or text

action=parse was raising an error about missing 'text' with 'title' even
when 'title' wasn't actually passed, due to a fix for bug 33865. But
this broke using action=parse to parse an edit summary without also
giving it wikitext to parse.

Instead, let's give the client a warning (unless it seems clear they
know what they are doing) and assume the empty string for 'text'.

Also, while we're editing the file, add some more examples as also
requested in bug 48319.

Bug: 48319
Change-Id: I03c1fbcb0bd31dea8bd84e164104f7ced0ace449
RELEASE-NOTES-1.22
includes/api/ApiParse.php