Replace 2 or 3 deprecated hooks in 2 or 3 MediaWiki extensions (VII)
This task might be boring, but that's also part of a developer's job.
In MediaWiki core's ContentHandler "module", a lot of hooks+functions were deprecated in version 1.21 (1.21 is unsupported since 2014).
Some of these deprecated hooks are still used in code of MediaWiki extensions ("technical debt") and should be replaced. These extensions need cleaning up so that the deprecated hooks can finally be removed from MediaWiki core.
See the description of the linked Phabricator task for info about the deprecated hooks + their replacements. You want to take a look at the deprecated hook in the MediaWiki Core code repository + also its replacement. You have to look up the correct use of the replacement. (To get an idea, you can also check for code in MediaWiki Core that has already been replaced.)
Update the code in the following repositories + provide patches in Gerrit (each repository requires a separate patch):
- mediawiki/extensions/Premoderation/Premoderation.class.php: $wgHooks['ArticleSave'][]
- mediawiki/extensions/PageInCat/extension.json: "EditPageGetPreviewText": [
- mediawiki/extensions/Transliterator/Transliterator.php: $wgHooks['EditPageGetPreviewText'][]
The commit message of your Gerrit patch(es) must have the line "Bug: T151973".