Mark Article::doEditContent() as deprecated
authorReedy <reedy@wikimedia.org>
Thu, 19 Jan 2017 02:56:16 +0000 (02:56 +0000)
committerReedy <reedy@wikimedia.org>
Thu, 19 Jan 2017 03:34:26 +0000 (03:34 +0000)
Bug: T155696
Change-Id: Ie91b428f3a5992ba85c6ca2b2909953d8fce139b

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

index bde15d5..024a6f4 100644 (file)
@@ -205,6 +205,8 @@ changes to languages because of Phabricator reports.
 * Revision::getText() (deprecated in 1.21) was removed.
 * Article::doEdit() and WikiPage::doEdit() (deprecated in 1.21) were removed.
 * Parser::replaceUnusualEscapes() (deprecated in 1.24) was removed.
+* Article::doEditContent() was marked as deprecated, to be removed in 1.30
+  or later.
 
 == Compatibility ==
 
index 2052ed3..208fe1f 100644 (file)
@@ -2030,6 +2030,7 @@ class Article implements Page {
        public function doEditContent( Content $content, $summary, $flags = 0, $baseRevId = false,
                User $user = null, $serialFormat = null
        ) {
+               wfDeprecated( __METHOD__, '1.29' );
                return $this->mPage->doEditContent( $content, $summary, $flags, $baseRevId,
                        $user, $serialFormat
                );