Page MenuHomePhabricator
Paste P10527

wgUser: Draft RELEASE-NOTES-1.36
ArchivedPublic

Authored by DannyS712 on Feb 26 2020, 5:01 AM.
Tags
None
Referenced Files
F31727693: raw.txt
Apr 3 2020, 9:53 PM
F31717988: raw.txt
Mar 31 2020, 5:08 PM
F31717979: raw.txt
Mar 31 2020, 4:54 PM
F31716479: raw.txt
Mar 31 2020, 4:15 AM
F31716365: raw.txt
Mar 31 2020, 2:57 AM
F31715223: raw.txt
Mar 30 2020, 4:39 PM
F31705456: raw.txt
Mar 27 2020, 8:17 PM
F31704143: raw.txt
Mar 27 2020, 12:55 AM
Subscribers
None
Ready:
* The following methods previously accepted an optional user parameter. Not passing a user was hard deprecated in 1.35. Support for not passing a user has now been removed:
- constructing a FileDeleteForm
- constructing a LocalFileDeleteBatch (the constructor signature changed to support requiring a user, and the entire old signature now removed)
- ArchivedFile::userCan
- FileDeleteForm::doDelete
- LocalFile::userCan
- LogEventsList::userCan
- LogEventsList::userCanBitfield
- LogEventsList::userCanViewLogType
- LogPage::addEntry
- PatrolLog::record
- Revision::newNullRevision (note however, that the entire class is soft deprecated, and RevisionStore::newNullRevision should be used instead)
- Title::getNotificationTimestamp
- WikiPage::insertProtectNullRevision
* The following functions all accept an optional audience parameter and an optional user parameter. If the audience is FOR_THIS_USER and no user is passed, they fallback to $wgUser. Not passing a user when one is needed is deprecated
- LogEventsList::getExcludeClause
- Revision::getComment
- Revision::getUser
- Revision::getUserText
- WikiPage::getComment
- WikiPage::getCreator
- WikiPage::getUser
- WikiPage::getUserText
* The old SpecialPageFactory (the one in SpecialPageFactory_deprecated.php, not the one at MediaWiki\SpecialPage\SpecialPageFactory), which made use of $wgUser and was previously deprecated, have been removed entirely
* The Revision class was soft deprecated entirely 1.31. Some of its methods were individually hard deprecated, and have been removed
- tracked at P10770 / T247143
- RevisionStore::loadRevisionFromPageId
- RevisionStore::loadRevisionFromTimestamp
- RevisionStore::loadRevisionFromTitle
* The following methods have been removed entirely:
- ApiTestCase::doLogin
- Article::doDeleteArticle
- Article::doDeleteArticleReal
- Article::getComment
- Article::getCreator
- Article::getUser
- Article::getUserText
- Article::insertProtectNullRevision
- LocalFile::delete
- LocalFile::deleteOld
- PageArchive::undelete
- RecentChange::markPatrolled
- Title::getUserPermissionsErrors
- Title::quickUserCan
- Title::userCan
- WebRequest::getLimitOffset
- WikiPage::doDeleteArticle
* The following hooks, soft deprecated in 1.24 and hard deprecated in 1.35, have been removed
- APIQueryInfoTokens
- APIQueryRecentChangesTokens
- APIQueryRevisionsTokens
- APIQueryUsersTokens
- ApiTokensGetTokenTypes
* The RevisionInsertComplete hook, soft deprecated in 1.31 and hard deprecated in 1.35, was also removed.
* LogEventsList::typeAction previously accepted an optional right parameter, and checked if the context user ($wgUser) had that right. Passing a right was hard deprecated in 1.35, and support for checking against a right has now been removed.
* WikiPage::doDeleteArticleReal previously accepted an optional user as its fifth parameter, and fell back to $wgUser if not user was provided. The signature changed to have the user as the second parameter, and the old signature was hard deprecated in 1.35. Support for the old signature has now been removed.
Not ready yet:

Event Timeline

DannyS712 edited the content of this paste. (Show Details)
DannyS712 edited the content of this paste. (Show Details)
This comment has been deleted.