From: Tim Starling Date: Wed, 11 Oct 2017 23:02:05 +0000 (+1100) Subject: Deprecate $wgEnableAPI and $wgEnableWriteAPI X-Git-Tag: 1.31.0-rc.0~1814 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=5f3c34f1f8c1d5e183e3e20d5aeaee6d73fab662;p=lhc%2Fweb%2Fwiklou.git Deprecate $wgEnableAPI and $wgEnableWriteAPI $wgEnableAPI and $wgEnableWriteAPI are now deprecated and will be removed in a future version. The API is now considered to be stable, secure and essential. Bug: T115414 Change-Id: I8c98ce63afd82677ecf662f8159e58be1759bde0 --- diff --git a/RELEASE-NOTES-1.31 b/RELEASE-NOTES-1.31 index 3fd1fc8ac9..57cbec456d 100644 --- a/RELEASE-NOTES-1.31 +++ b/RELEASE-NOTES-1.31 @@ -6,7 +6,9 @@ MediaWiki 1.31 is an alpha-quality branch and is not recommended for use in production. === Configuration changes in 1.31 === -* … +* $wgEnableAPI and $wgEnableWriteAPI are now deprecated and will be removed in + a future version. The API is now considered to be stable, secure and + essential. === New features in 1.31 === * … diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 780976a1c8..bd944d24d8 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -7953,6 +7953,8 @@ $wgExemptFromUserRobotsControl = null; * machine-readable data via api.php * * See https://www.mediawiki.org/wiki/API + * + * @deprecated since 1.31 */ $wgEnableAPI = true; @@ -7960,6 +7962,8 @@ $wgEnableAPI = true; * Allow the API to be used to perform write operations * (page edits, rollback, etc.) when an authorised user * accesses it + * + * @deprecated since 1.31 */ $wgEnableWriteAPI = true;