jenkins-bot has submitted this change and it was merged. Change subject: Remove deprecated Title::userCanRead() ......................................................................
Remove deprecated Title::userCanRead() Change-Id: I574babf4534c849d1e1491724ea537d53ea1d1d5 --- M RELEASE-NOTES-1.24 M includes/Title.php 2 files changed, 1 insertion(+), 11 deletions(-) Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24 index 0e23f58..89348ea 100644 --- a/RELEASE-NOTES-1.24 +++ b/RELEASE-NOTES-1.24 @@ -255,6 +255,7 @@ * Removed maintenance/nextJobDB.php; no longer in use. * Removed global function wfViewPrevNext(). (deprecated since 1.19) * Removed global function xmlsafe() from Export.php. (moved to OAIRepo extension) +* Removed Title::userCanRead(). (deprecated since 1.19) ==== Renamed classes ==== * CLDRPluralRuleConverter_Expression to CLDRPluralRuleConverterExpression diff --git a/includes/Title.php b/includes/Title.php index 8466581..4adf2e4 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1836,17 +1836,6 @@ } /** - * Can $wgUser read this page? - * - * @deprecated since 1.19; use userCan(), quickUserCan() or getUserPermissionsErrors() instead - * @return bool - */ - public function userCanRead() { - wfDeprecated( __METHOD__, '1.19' ); - return $this->userCan( 'read' ); - } - - /** * Can $user perform $action on this page? * This skips potentially expensive cascading permission checks * as well as avoids expensive error formatting -- To view, visit https://gerrit.wikimedia.org/r/146725 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I574babf4534c849d1e1491724ea537d53ea1d1d5 Gerrit-PatchSet: 4 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Withoutaname <drevit...@gmail.com> Gerrit-Reviewer: Aaron Schulz <asch...@wikimedia.org> Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com> Gerrit-Reviewer: Withoutaname <drevit...@gmail.com> Gerrit-Reviewer: Yaron Koren <yaro...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits