diff options
author | James D. Forrester <jforrester@wikimedia.org> | 2024-01-26 14:04:13 -0500 |
---|---|---|
committer | James D. Forrester <jforrester@wikimedia.org> | 2024-07-10 11:53:47 +0100 |
commit | cce1b62246ad421d5739af14dc53b72995d153c0 (patch) | |
tree | 0875b86cd9b91ddb3f903ebe32e23e23e4596b24 | |
parent | cea63aaf5203a2002e1849af01753d5795e6879e (diff) | |
download | mediawikicore-cce1b62246ad421d5739af14dc53b72995d153c0.tar.gz mediawikicore-cce1b62246ad421d5739af14dc53b72995d153c0.zip |
Hard-deprecate Title::loadRestrictions
Change-Id: I3b5340354076033ef436f757c63a8b81f4bb8ed1
-rw-r--r-- | RELEASE-NOTES-1.43 | 1 | ||||
-rw-r--r-- | includes/title/Title.php | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/RELEASE-NOTES-1.43 b/RELEASE-NOTES-1.43 index 469e318fc7ab..9893a33f2870 100644 --- a/RELEASE-NOTES-1.43 +++ b/RELEASE-NOTES-1.43 @@ -390,6 +390,7 @@ because of Phabricator reports. MediaWiki 1.39, now emits deprecation warnings. * Title::getTitleProtection(), deprecated in 1.37, now emits warnings. You can use RestrictionStore::getCreateProtection() instead. +* Title::loadRestrictions(), deprecated in 1.37, now emits warnings. * The following methods, previously deprecated, now emit deprecation warnings: - ContentHandler::getDefaultModelFor(), deprecated since 1.33 - ContentHandler::getAllContentFormats(), deprecated since 1.35 diff --git a/includes/title/Title.php b/includes/title/Title.php index 7481a893ba81..b4fc1032879d 100644 --- a/includes/title/Title.php +++ b/includes/title/Title.php @@ -2394,12 +2394,13 @@ class Title implements Stringable, LinkTarget, PageIdentity { /** * Load restrictions from the page_restrictions table * - * @deprecated since 1.37, no public replacement + * @deprecated since 1.37, no public replacement; hard-deprecated since 1.43 * * @param int $flags A bit field. If IDBAccessObject::READ_LATEST is set, skip replicas and read * from the primary DB. */ public function loadRestrictions( $flags = 0 ) { + wfDeprecated( __METHOD__, '1.37' ); MediaWikiServices::getInstance()->getRestrictionStore()->loadRestrictions( $this, $flags ); } |