Article::getContent() was removed
authorReedy <reedy@wikimedia.org>
Thu, 19 Jan 2017 01:49:07 +0000 (01:49 +0000)
committerReedy <reedy@wikimedia.org>
Thu, 19 Jan 2017 01:49:07 +0000 (01:49 +0000)
Bug: T154498
Change-Id: I27956d494cf19d1204988807130b43f77186db9b

RELEASE-NOTES-1.29
includes/page/Article.php

index e404940..cbfd124 100644 (file)
@@ -201,6 +201,7 @@ changes to languages because of Phabricator reports.
   Use ContentHandlerDefaultModelFor instead.
 * Hook TitleIsWikitextPage (deprecated in 1.21) was removed.
   Use ContentHandlerDefaultModelFor instead.
+* Article::getContent (deprecated in 1.21) was removed.
 
 == Compatibility ==
 
index a33c84f..b8be294 100644 (file)
@@ -197,24 +197,6 @@ class Article implements Page {
                $this->mPage->clear();
        }
 
-       /**
-        * Note that getContent does not follow redirects anymore.
-        * If you need to fetch redirectable content easily, try
-        * the shortcut in WikiPage::getRedirectTarget()
-        *
-        * This function has side effects! Do not use this function if you
-        * only want the real revision text if any.
-        *
-        * @deprecated since 1.21; use WikiPage::getContent() instead
-        *
-        * @return string Return the text of this revision
-        */
-       public function getContent() {
-               wfDeprecated( __METHOD__, '1.21' );
-               $content = $this->getContentObject();
-               return ContentHandler::getContentText( $content );
-       }
-
        /**
         * Returns a Content object representing the pages effective display content,
         * not necessarily the revision's content!