Page MenuHomePhabricator

Legacy methods WikiPage::clearPreparedEdit() and Article::clearPreparedEdit()
Open, LowPublic

Description

I'm mark as deprecated:

  • \WikiPage::$mPreparedEdit
  • \WikiPage::clearPreparedEdit
  • \Article::clearPreparedEdit

\MediaWiki\Edit\PreparedEdit also deprecated since 1.32 (2018-01-27)
It does not work or hasn't effect. I think we can remove that legacy code after deprecation

@tstarling says:
If you do this then you need to update Wikibase which uses this method. It seems to me that Wikibase was possibly broken by e8632ab0f6264851d2115a2e6338c2074b9a9b8c, i.e. the commit which caused clearPreparedEdit() to have no effect. Perhaps it was accidental that clearPreparedEdit() has no effect. Deprecating this method was not part of the referenced Phabricator task. I suggest splitting all changes to this file into a separate commit.

Event Timeline

Change 571777 had a related patch set uploaded (by Art-Baltai; owner: Art-Baltai):
[mediawiki/core@master] Legacy methods WikiPage::clearPreparedEdit() and Article::clearPreparedEdit()

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

Change 571779 had a related patch set uploaded (by Art-Baltai; owner: BAGArt):
[mediawiki/extensions/Wikibase@master] Legacy methods WikiPage::clearPreparedEdit() and Article::clearPreparedEdit()

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

@Art-Baltai: Adding project tags so others can find this task when searching for tasks under that project.