Jforrester has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/386412 )
Change subject: Article: Drop partial purge code and constants, deprecated in
1.29
......................................................................
Article: Drop partial purge code and constants, deprecated in 1.29
Change-Id: I4f20d823e6c9206121212b8a73ecc28f91e68b45
---
M RELEASE-NOTES-1.31
M includes/page/Article.php
M includes/page/WikiPage.php
3 files changed, 2 insertions(+), 28 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/12/386412/1
diff --git a/RELEASE-NOTES-1.31 b/RELEASE-NOTES-1.31
index fc50897..042af6e 100644
--- a/RELEASE-NOTES-1.31
+++ b/RELEASE-NOTES-1.31
@@ -55,6 +55,8 @@
* The OutputPage class constructor now requires a context parameter,
(instantiating without context was deprecated in 1.18)
* mw.page (deprecated in 1.30) was removed.
+* Article::getLastPurgeTimestamp(), WikiPage::getLastPurgeTimestamp(), and the
+ related WikiPage::PURGE_* constants, deprecated in 1.29, were removed.
== Compatibility ==
MediaWiki 1.31 requires PHP 5.5.9 or later. There is experimental support for
diff --git a/includes/page/Article.php b/includes/page/Article.php
index b91bd9a..da8fe88 100644
--- a/includes/page/Article.php
+++ b/includes/page/Article.php
@@ -2118,16 +2118,6 @@
/**
* Call to WikiPage function for backwards compatibility.
- * @see WikiPage::getLastPurgeTimestamp
- * @deprecated since 1.29
- */
- public function getLastPurgeTimestamp() {
- wfDeprecated( __METHOD__, '1.29' );
- return $this->mPage->getLastPurgeTimestamp();
- }
-
- /**
- * Call to WikiPage function for backwards compatibility.
* @see WikiPage::doViewUpdates
*/
public function doViewUpdates( User $user, $oldid = 0 ) {
diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php
index aa26105..146c054 100644
--- a/includes/page/WikiPage.php
+++ b/includes/page/WikiPage.php
@@ -88,12 +88,6 @@
*/
protected $mLinksUpdated = '19700101000000';
- /** @deprecated since 1.29. Added in 1.28 for partial purging, no
longer used. */
- const PURGE_CDN_CACHE = 1;
- const PURGE_CLUSTER_PCACHE = 2;
- const PURGE_GLOBAL_PCACHE = 4;
- const PURGE_ALL = 7;
-
/**
* Constructor and clear the article
* @param Title $title Reference to a Title object.
@@ -1132,18 +1126,6 @@
}
return true;
- }
-
- /**
- * Get the last time a user explicitly purged the page via action=purge
- *
- * @return string|bool TS_MW timestamp or false
- * @since 1.28
- * @deprecated since 1.29. It will always return false.
- */
- public function getLastPurgeTimestamp() {
- wfDeprecated( __METHOD__, '1.29' );
- return false;
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/386412
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4f20d823e6c9206121212b8a73ecc28f91e68b45
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Jforrester <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits