Fully replace Title::moveTo() with MovePage
authorKunal Mehta <legoktm@gmail.com>
Sat, 11 Oct 2014 05:43:02 +0000 (22:43 -0700)
committerKunal Mehta <legoktm@gmail.com>
Tue, 28 Oct 2014 19:52:36 +0000 (12:52 -0700)
commitac53e45035e7b7ea22e123b404608e5e699024be
treea565fe066ea3b93c496fd6c8dd5cdeb0583fb25f
parent5cc1f1d287dc5a6820e12ba7eb6e72eb98adb297
Fully replace Title::moveTo() with MovePage

* AbortMove hook is removed in favor of two more specificly focused
  hooks: MovePageCheckPermissions and MovePageIsValidMove.
** MovePageIsValidMove is for extensions to specify whether a page
   cannot be moved for technical reasons, and should not be
   overridden.
** MovePageCheckPermissions is for checking whether the given user
   is allowed to make the move.

* Title::moveNoAuth() deprecated
* Title::moveTo() deprecated
* Title::isValidMoveOperation() broken down into
  MovePage::isValidMove() and MovePage::checkPermissions().

* Title::getTitleProtection() is now public, and returns
  unprefixed fields

Change-Id: Ic5026384b92a0d68d628397ffe1de6e5b6183f02
RELEASE-NOTES-1.25
docs/hooks.txt
includes/MovePage.php
includes/Title.php
includes/api/ApiMove.php
includes/specials/SpecialMovepage.php
maintenance/cleanupCaps.php
maintenance/moveBatch.php
tests/phpunit/includes/TitlePermissionTest.php