jenkins-bot has submitted this change and it was merged.

Change subject: Document future removal of action=parse&prop=languageshtml
......................................................................


Document future removal of action=parse&prop=languageshtml

Change-Id: I600bbac02633f3b17044602917d062106ae83867
---
M RELEASE-NOTES-1.23
M includes/api/ApiParse.php
2 files changed, 7 insertions(+), 1 deletion(-)

Approvals:
  Chad: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/RELEASE-NOTES-1.23 b/RELEASE-NOTES-1.23
index 2d89dd2..a51575d 100644
--- a/RELEASE-NOTES-1.23
+++ b/RELEASE-NOTES-1.23
@@ -60,6 +60,8 @@
 * action=query&meta=filerepoinfo now returns additional information for each
   repo.
 * EditPage::spamPage() was deprecated since 1.17 and has been removed.
+* action=parse&prop=languageshtml was deprecated in 1.18 and will be removed in
+  MediaWiki 1.24.
 
 === Languages updated in 1.23===
 
diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php
index ddc032d..88904c0 100644
--- a/includes/api/ApiParse.php
+++ b/includes/api/ApiParse.php
@@ -532,6 +532,9 @@
         */
        private function languagesHtml( $languages ) {
                wfDeprecated( __METHOD__, '1.18' );
+               $this->setWarning( '"action=parse&prop=languageshtml" is 
deprecated ' .
+                       'and will be removed in MediaWiki 1.24. Use 
"prop=langlinks" ' .
+                       'to generate your own HTML.' );
 
                global $wgContLang, $wgHideInterlanguageLinks;
 
@@ -716,7 +719,8 @@
                                ' langlinks      - Gives the language links in 
the parsed wikitext',
                                ' categories     - Gives the categories in the 
parsed wikitext',
                                ' categorieshtml - Gives the HTML version of 
the categories',
-                               ' languageshtml  - Gives the HTML version of 
the language links',
+                               ' languageshtml  - DEPRECATED. Will be removed 
in MediaWiki 1.24.',
+                               '                  Gives the HTML version of 
the language links',
                                ' links          - Gives the internal links in 
the parsed wikitext',
                                ' templates      - Gives the templates in the 
parsed wikitext',
                                ' images         - Gives the images in the 
parsed wikitext',

-- 
To view, visit https://gerrit.wikimedia.org/r/96364
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I600bbac02633f3b17044602917d062106ae83867
Gerrit-PatchSet: 6
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: RobLa <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: Umherirrender <[email protected]>
Gerrit-Reviewer: Yurik <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to