Perform edit stashing when the edit preview or diff form is requested
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 14 Jun 2016 12:05:06 +0000 (05:05 -0700)
committerOri.livneh <ori@wikimedia.org>
Tue, 14 Jun 2016 18:25:35 +0000 (18:25 +0000)
commit406d6a2b46fb4afcfae0840b7c6b5a346f3272c2
tree838515f1558a43c89c24e1473b60f8569ac7245d
parent32a2661a56db1be717ce431c67260bbea771558f
Perform edit stashing when the edit preview or diff form is requested

* Users are likely to save after they inspect and review their changes.
  The buttons to do so are also located below the edit summary box.
* This obsoletes the backend stashing on preview. Most of those parses
  would have been useless due to being per-section only. Also, some
  extensions like the Graph extension disable stashing for "preview"
  output anyway. Simplify the code by removing that method.

Bug: T136678
Change-Id: Ied77bdbd191dd9267d4295b0fa7b942f65b062db
includes/EditPage.php
includes/api/ApiStashEdit.php
resources/src/mediawiki.action/mediawiki.action.edit.stash.js