From 91e5e4132509ac8161d622a76c9d0842a31719c9 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Thu, 3 Nov 2016 11:16:00 -0700 Subject: [PATCH] Disable magic links by default And add release notes for all the magic links changes in 1.28. Bug: T147536 Change-Id: I66b2c4424b17cc86bbd7339de588f1c00cd2f18d --- RELEASE-NOTES-1.28 | 6 ++++++ includes/DefaultSettings.php | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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 } -- 2.20.1