aboutsummaryrefslogtreecommitdiffstats
path: root/includes/title/Title.php
diff options
context:
space:
mode:
authorJames D. Forrester <jforrester@wikimedia.org>2024-01-26 14:04:13 -0500
committerJames D. Forrester <jforrester@wikimedia.org>2024-07-10 11:53:47 +0100
commitcce1b62246ad421d5739af14dc53b72995d153c0 (patch)
tree0875b86cd9b91ddb3f903ebe32e23e23e4596b24 /includes/title/Title.php
parentcea63aaf5203a2002e1849af01753d5795e6879e (diff)
downloadmediawikicore-cce1b62246ad421d5739af14dc53b72995d153c0.tar.gz
mediawikicore-cce1b62246ad421d5739af14dc53b72995d153c0.zip
Hard-deprecate Title::loadRestrictions
Change-Id: I3b5340354076033ef436f757c63a8b81f4bb8ed1
Diffstat (limited to 'includes/title/Title.php')
-rw-r--r--includes/title/Title.php3
1 files changed, 2 insertions, 1 deletions
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 );
}