WikiPage::prepareTextForEdit() was removed
authorReedy <reedy@wikimedia.org>
Mon, 12 Dec 2016 01:09:59 +0000 (01:09 +0000)
committerReedy <reedy@wikimedia.org>
Mon, 12 Dec 2016 01:12:52 +0000 (01:12 +0000)
Bug: T145728
Change-Id: If15777c04a52bd398092884fab592cfb0930255b

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

index 0cce190..4291302 100644 (file)
@@ -115,6 +115,7 @@ changes to languages because of Phabricator reports.
 * Hooks ArticleViewCustom, EditPageGetDiffText and ShowRawCssJs (deprecated in 1.21)
   were removed.
 * Class RevisiondeleteAction (deprecated in 1.25) was removed.
+* WikiPage::prepareTextForEdit() (deprecated in 1.21) was removed.
 
 == Compatibility ==
 
index 924a395..51d9c6a 100644 (file)
@@ -2076,22 +2076,6 @@ class WikiPage implements Page, IDBAccessObject {
                return $options;
        }
 
-       /**
-        * Prepare text which is about to be saved.
-        * Returns a stdClass with source, pst and output members
-        *
-        * @param string $text
-        * @param int|null $revid
-        * @param User|null $user
-        * @deprecated since 1.21: use prepareContentForEdit instead.
-        * @return object
-        */
-       public function prepareTextForEdit( $text, $revid = null, User $user = null ) {
-               wfDeprecated( __METHOD__, '1.21' );
-               $content = ContentHandler::makeContent( $text, $this->getTitle() );
-               return $this->prepareContentForEdit( $content, $revid, $user );
-       }
-
        /**
         * Prepare content which is about to be saved.
         * Returns a stdClass with source, pst and output members