Page MenuHomePhorge

No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/RELEASE-NOTES-1.44 b/RELEASE-NOTES-1.44
index d7eca0a5097..befb24f2e76 100644
--- a/RELEASE-NOTES-1.44
+++ b/RELEASE-NOTES-1.44
@@ -634,6 +634,8 @@ because of Phabricator reports.
It is planned to be removed in 1.45. No replacement is provided.
* WikiPage::doEditUpdates(), deprecated since 1.32, is now emitting warnings.
Use DerivedPageDataUpdater::doUpdates() instead.
+* Title::deleteTitleProtection(), deprecated in 1.37, now emits warnings.
+ Use RestrictionStore::deleteCreateProtection() instead.
* IDatabase::setTransactionListener() is now deprecated without replacement.
* ILBFactory::setWaitForReplicationListener() is now deprecated without
replacement.
diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php
index 5f3d68fc42e..dd62f3a8a39 100644
--- a/includes/page/WikiPage.php
+++ b/includes/page/WikiPage.php
@@ -2442,7 +2442,7 @@ class WikiPage implements Stringable, Page, PageRecord {
$hcu->purgeTitleUrls( [ $title, $other ], $hcu::PURGE_INTENT_TXROUND_REFLECTED );
$title->touchLinks();
- $title->deleteTitleProtection();
+ $services->getRestrictionStore()->deleteCreateProtection( $title );
$services->getLinkCache()->invalidateTitle( $title );
diff --git a/includes/title/Title.php b/includes/title/Title.php
index 4f8f4bf4dfc..94fe068b103 100644
--- a/includes/title/Title.php
+++ b/includes/title/Title.php
@@ -2383,8 +2383,10 @@ class Title implements Stringable, LinkTarget, PageIdentity {
* Remove any title protection due to page existing
*
* @deprecated since 1.37, do not use (this is only for WikiPage::onArticleCreate)
+ * hard-deprecated since 1.44
*/
public function deleteTitleProtection() {
+ wfDeprecated( __METHOD__, '1.37' );
MediaWikiServices::getInstance()->getRestrictionStore()->deleteCreateProtection( $this );
}

File Metadata

Mime Type
text/x-diff
Expires
Sat, Jul 5, 5:32 AM (22 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227708
Default Alt Text
(1 KB)

Event Timeline