The ContentHandler project deprecated a bunch of stuff. Many of those functions and hooks are still in active use and don't emit deprecation warnings. Given that we have another large refactoring planned (MCR), we should clean up this technical debt first.
This task should be closed once all hooks and functions deprecated by ContentHandler are emitting deprecation warnings (e.g. using wfDeprecated). That means updating at least all Wikimedia-deployed extensions.
function | deprecated notice | deprecated func doc | comment |
Article::getContent() | no | yes | tasks filed |
Article::fetchContent() | yes | yes | tasks filed |
Article::doEdit() / WikiPage::doEdit() | yes | yes | tasks filed |
Article::getText() | yes | yes | no apparent usages |
Revision::getText() | yes | yes | used by WikiPage::getText() and various extensions (Echo, MobileFrontend, MWSearch, SpamBlacklist...). |
WikiPage::getText() | yes | yes | tasks filed |
WikiRevision::getText() | yes | yes | no apparent uses |
WikiPage::getAutosummary() | yes | yes | tasks filed |
Article::getAutosummary() | (done in WikiPage) | yes | only used in ArticleTest::testStaticFunctions() |
Article::prepareTextForEdit() | (done in WikiPage) | yes | tasks filed |
WikiPage::prepareTextForEdit() | yes | yes | tasks filed |
Hooks (crossed out means marked as deprecated when called):
- ArticleAfterFetchContent
- ArticleInsertComplete
- ArticleSave
- ArticleSaveComplete
- ArticleViewCustom
- EditFilterMerged
- EditPageGetDiffText
- EditPageGetPreviewText
- ShowRawCssJs
- TitleIsCssOrJsPage
- TitleIsWikitextPage