Umherirrender has uploaded a new change for review. https://gerrit.wikimedia.org/r/142799
Change subject: Remove Title::updateTitleProtection() (deprecated since 1.19) ...................................................................... Remove Title::updateTitleProtection() (deprecated since 1.19) Change-Id: I7ebfa106ef72a4aa6659332210e3401bfa02cafc --- M RELEASE-NOTES-1.24 M includes/Title.php 2 files changed, 1 insertion(+), 24 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/99/142799/1 diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24 index f3648df..1d47d9a 100644 --- a/RELEASE-NOTES-1.24 +++ b/RELEASE-NOTES-1.24 @@ -200,6 +200,7 @@ * Removed Preferences::loadOldSearchNs(). (deprecated since 1.19) * Removed OutputPage::getStatusMessage(). (deprecated since 1.18) * Removed OutputPage::isUserJsAllowed(). (deprecated since 1.18) +* Removed Title::updateTitleProtection(). (deprecated since 1.19) ==== Renamed classes ==== * CLDRPluralRuleConverter_Expression to CLDRPluralRuleConverterExpression diff --git a/includes/Title.php b/includes/Title.php index e038cc7..6a17e2d 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2585,30 +2585,6 @@ } /** - * Update the title protection status - * - * @deprecated since 1.19; use WikiPage::doUpdateRestrictions() instead. - * @param string $create_perm Permission required for creation - * @param string $reason Reason for protection - * @param string $expiry Expiry timestamp - * @return bool - */ - public function updateTitleProtection( $create_perm, $reason, $expiry ) { - wfDeprecated( __METHOD__, '1.19' ); - - global $wgUser; - - $limit = array( 'create' => $create_perm ); - $expiry = array( 'create' => $expiry ); - - $page = WikiPage::factory( $this ); - $cascade = false; - $status = $page->doUpdateRestrictions( $limit, $expiry, $cascade, $reason, $wgUser ); - - return $status->isOK(); - } - - /** * Remove any title protection due to page existing */ public function deleteTitleProtection() { -- To view, visit https://gerrit.wikimedia.org/r/142799 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7ebfa106ef72a4aa6659332210e3401bfa02cafc Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Umherirrender <umherirrender_de...@web.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits