wiki.techinc.nl/includes/changes
DannyS712 77781b08c7 Add delete-redirect for deleting single-rev redirects during moves
A new user right, `delete-redirect`, is added (not given to anyone
by default). At Special:MovePage, if attempting to move to a single
revision redirect that would otherwise be an invalid target (i.e.
doesn't point to the source page), the user is able to delete the
target.

Deletions are logged as `delete/delete_redir2`, and the move is
then logged normally as `move/move`, mirroring current delete and
move logging.

To allow for separate handling by Special:MovePage,
MovePage::isValidMove now returns a fatal status `redirectexists` if
the target isn't valid but passes Title::isSingleRevRedirect.
Otherwise, `articleexists` is returned (as previously). Other callers
that don't intend to treat single revision redirects differently
should treat `redirectexists` the same as `articleexists`.

Currently, this deletion (like normal delete and move) cannot be
done through the move api. Since the deletion is only valid when
moving a page, unlike for normal deletion, deleting redirects with
this right cannot be done via the delete api either.

Bug: T239277
Change-Id: I36c8df0a12d326ae07018046541bd00103936144
2020-09-04 03:50:17 +00:00
..
Hook Replace "@stable for implementation" with "@stable to implement" 2020-07-13 11:05:49 +02:00
AtomFeed.php Merge "Explicit return in ChannelFeed::formatTime() implementations" 2020-05-08 22:00:41 +00:00
CategoryMembershipChange.php Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
ChangesFeed.php build: Upgrade phan to 0.9.0 2019-12-07 20:16:19 +00:00
ChangesList.php Update language in watchlist expiry 2020-08-14 11:47:03 -07:00
ChangesListBooleanFilter.php Remove duplicate variable name from class property PHPDocs 2019-12-02 12:58:29 +00:00
ChangesListBooleanFilterGroup.php Fix more PSR12.Properties.ConstantVisibility.NotFound 2020-05-15 00:33:32 +01:00
ChangesListFilter.php Fix more PSR12.Properties.ConstantVisibility.NotFound 2020-05-15 00:33:32 +01:00
ChangesListFilterGroup.php Fix more PSR12.Properties.ConstantVisibility.NotFound 2020-05-15 00:33:32 +01:00
ChangesListStringOptionsFilter.php
ChangesListStringOptionsFilterGroup.php Fix more PSR12.Properties.ConstantVisibility.NotFound 2020-05-15 00:33:32 +01:00
ChannelFeed.php Update stability annotations to follow new stable interface policy 2020-07-13 09:40:54 +00:00
EnhancedChangesList.php Introduce ProtectedHookAccessorTrait and pilot the Hooks::run() migration 2020-05-13 13:50:32 +10:00
FeedItem.php build: Bump mediawiki-codesniffer to 31.0.0 2020-05-30 14:56:28 +00:00
OldChangesList.php Whitespace cleanup: Use tabs for indentation, avoid double spaces 2020-06-27 07:53:07 +00:00
RCCacheEntry.php Add clock icon to expiring items in Special:Watchlist 2020-06-19 05:48:21 +08:00
RCCacheEntryFactory.php Fix broken PHPDoc comments that don't start with /** 2020-07-23 16:09:41 +00:00
RecentChange.php Add delete-redirect for deleting single-rev redirects during moves 2020-09-04 03:50:17 +00:00
RSSFeed.php Replace use of old $wgVersion constant with MW_VERSION 2020-05-13 15:01:19 -07:00