From: Reedy Date: Mon, 12 Dec 2016 01:09:59 +0000 (+0000) Subject: WikiPage::prepareTextForEdit() was removed X-Git-Tag: 1.31.0-rc.0~4619^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=275f977093211b5ede6ce2f4fb1301f15dcf7641 WikiPage::prepareTextForEdit() was removed Bug: T145728 Change-Id: If15777c04a52bd398092884fab592cfb0930255b --- diff --git a/RELEASE-NOTES-1.29 b/RELEASE-NOTES-1.29 index 0cce190317..4291302bd9 100644 --- a/RELEASE-NOTES-1.29 +++ b/RELEASE-NOTES-1.29 @@ -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 == diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php index 924a395d7b..51d9c6afb7 100644 --- a/includes/page/WikiPage.php +++ b/includes/page/WikiPage.php @@ -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