Manual:cleanupBlocks.php
MediaWiki version: | ≥ 1.25 |
MediaWiki file: cleanupBlocks.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.4 • 1.41.5 • 1.39.11 |
Classes: | CleanupBlocks |
Details
editcleanupBlocks.php is a maintenance script that cleans up user blocks with usernames that do not match the user table.
This script works in two steps.
- Clean up duplicate user blocks.
- Update mismatched usernames.
Options/Arguments
editThis script does not take any options or arguments.
Usage
editphp maintenance/run.php cleanupBlocks
Terminal
$ php maintenance/run.php cleanupBlocks Done!
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.