API: Spread autoblocks from action=edit and action=move
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 18 Feb 2019 19:46:05 +0000 (14:46 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 19 Feb 2019 22:34:48 +0000 (17:34 -0500)
commitc073e531cf7a7fe055f002148e97159006b75c22
tree77d81e1d7590605c33f9a7ad57bfedf44365b4ba
parentace0338421b6f100d4fde475206d165bd0b3afeb
API: Spread autoblocks from action=edit and action=move

The code in EditPage and SpecialMovepage does this primarily in web UI
code paths that aren't called by the API. EditPage also has a check in
the internal code path used by the API, but ApiEditPage runs its own
permissions check first and won't reach that code path.

Bug: T216245
Change-Id: I6263c8b60a24f3195dba583463f1ce4b004f82f5
RELEASE-NOTES-1.33
includes/api/ApiBase.php
includes/api/ApiEditPage.php
includes/api/ApiMove.php
tests/phpunit/includes/api/ApiEditPageTest.php
tests/phpunit/includes/api/ApiMoveTest.php