The easiest way to search-and-replace in MediaWiki is to use Special:Export, then edit the export dump file, then use Special:Import. Unfortunately, there are two pieces missing from this method:
- All <timestamp> fields are wrong, because the import is happening NOW, not at the time of the last revision
- All summary comments are wrong, because they don't mention the search-and-replace operation.
To achieve this right now, we have to edit the dump file to change timestamps and summary comments... but couldn't Special:Import do this for us, optionally? (Or perhaps maintenance/importDump.php?)
I suggest adding two new fields to Special:Import:
- A checkbox, "Set all import timestamps to NOW", defaulted to unchecked
- A text input, "Override all summary comments", defaulted to empty
and/or modifying maintenance/importDump.php to add these features via command line.
Version: 1.13.x
Severity: enhancement