Page MenuHomePhabricator

MassMessageHooks::onSkinTemplateNavigation uses hard deprecated title methods
Closed, ResolvedPublicBUG REPORT

Description

Uses Title::getNextRevisionId and Title::getPreviousRevisionId, both hard deprecated
I guess the logic to get to them isn't executed in the course of every-day editing, so it wasn't noticed? By manually manipulating my url to
https://meta.wikimedia.org/w/index.php?title=User:DannyS712/Global_watchlist/Updates&diff=21140244&oldid=21135074&direction=next and
https://meta.wikimedia.org/w/index.php?title=User:DannyS712/Global_watchlist/Updates&diff=21140244&oldid=21135074&direction=prev triggered the deprecations

[YEqxJXgkpBWUf0W1SfI6IQAAAEQ] /w/index.php?title=User:DannyS712/Global_watchlist/Updates&diff=21140244&oldid=21135074&direction=next   ErrorException: Use of Title::getNextRevisionID was deprecated in MediaWiki 1.34. [Called from MediaWiki\MassMessage\MassMessageHooks::onSkinTemplateNavigation]
[YEqxcq4x0sbnZX2Y4WJR0gAAAM4] /w/index.php?title=User:DannyS712/Global_watchlist/Updates&diff=21140244&oldid=21135074&direction=prev   ErrorException: Use of Title::getPreviousRevisionID was deprecated in MediaWiki 1.34. [Called from MediaWiki\MassMessage\MassMessageHooks::onSkinTemplateNavigation]

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
DannyS712 changed the subtype of this task from "Task" to "Bug Report".Mar 12 2021, 12:12 AM
DannyS712 moved this task from Unsorted to Reports on the User-DannyS712 board.

Change 672503 had a related patch set uploaded (by Urbanecm; owner: Urbanecm):
[mediawiki/extensions/MassMessage@master] Fix hard deprecation warnings in MasMessageHooks

https://gerrit.wikimedia.org/r/672503

Change 672503 abandoned by Nikerabbit:

[mediawiki/extensions/MassMessage@master] Fix hard deprecation warnings in MasMessageHooks

Reason:

Fixed in If27bb6b5142d09bc9293d080e97b6642462219f4

https://gerrit.wikimedia.org/r/672503