From: Kunal Mehta Date: Thu, 3 Nov 2016 18:16:00 +0000 (-0700) Subject: Disable magic links by default X-Git-Tag: 1.31.0-rc.0~4957^2 X-Git-Url: http://git.cyclocoop.org/%22%20%20.%20generer_url_ecrire%28%22mots_tous%22%29%20.%20%22?a=commitdiff_plain;h=91e5e4132509ac8161d622a76c9d0842a31719c9;p=lhc%2Fweb%2Fwiklou.git Disable magic links by default And add release notes for all the magic links changes in 1.28. Bug: T147536 Change-Id: I66b2c4424b17cc86bbd7339de588f1c00cd2f18d --- diff --git a/RELEASE-NOTES-1.28 b/RELEASE-NOTES-1.28 index a2a986f1d1..b70074be68 100644 --- a/RELEASE-NOTES-1.28 +++ b/RELEASE-NOTES-1.28 @@ -34,6 +34,12 @@ production. instead of just administrators ('sysop'). Documentation for this feature is available at . * $wgRevisionCacheExpiry is now set to one week by default instead of being disabled. +* Magic links are now disabled by default, and can be re-enabled by modifying the value + of $wgEnableMagicLinks. Their usage is discouraged, but if they are manually enabled, + a tracking category will be added to help identify usage and make it easier to migrate + away from. If you depend upon magic link functionality, it is requested that you comment + on and + explain your use case(s). === New features in 1.28 === * User::isBot() method for checking if an account is a bot role account. diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 0b0016c8b1..68e4f5d5be 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -4363,9 +4363,9 @@ $wgTranscludeCacheExpiry = 3600; * @since 1.28 */ $wgEnableMagicLinks = [ - 'ISBN' => true, - 'PMID' => true, - 'RFC' => true + 'ISBN' => false, + 'PMID' => false, + 'RFC' => false ]; /** @} */ # end of parser settings }