Manual:fixDoubleRedirects.php

From MediaWiki.org
Jump to: navigation, search
MediaWiki File: fixDoubleRedirects.php
Location: /maintenance/
Source code:

HEAD1.19.0rc1
1.19.01.18.3

Classes: FixDoubleRedirects

fixDoubleRedirects.php is a maintenance script located in the maintenance directory that can be used to fix double redirects. The edits will be attributed to the user named in the MediaWiki:Double-redirect-fixer message (User:Redirect fixer on English wikis by default). Edits made by this script are not shown on Special:RecentChanges, but they do appear in that user's contribs. The edit summary comes from the MediaWiki:Double-redirect-fixed-maintenance message.

This script was introduced in MediaWiki 1.18 (r81408) and is written for that version. For a version that runs on older MediaWiki versions (tested on 1.16), see here.

[edit] Usage

Option/Parameter Description
--async Don't fix anything directly, just queue the jobs
--dry-run Perform a dry run, fix nothing
--title=page Fix only redirects pointing to the given page

[edit] See also

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox