From 2639f3350167a4331dfa6120b9a47c80b731f518 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Fri, 19 Jan 2018 18:36:30 -0800 Subject: [PATCH 1/1] Set default fragment mode to [ 'legacy', 'html5' ] This is step one in migration, 1.35 LTS should make it [ 'html5', 'legacy' ]. Also issue deprecation warnings for $wgExperimentalHtmlIds. Bug: T152540 Bug: T139744 Change-Id: I8780bb589002a4f836ba90bd18093a56cddc3ddf --- RELEASE-NOTES-1.31 | 3 +++ includes/DefaultSettings.php | 2 +- includes/Setup.php | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES-1.31 b/RELEASE-NOTES-1.31 index dd002283ec..1008b0521c 100644 --- a/RELEASE-NOTES-1.31 +++ b/RELEASE-NOTES-1.31 @@ -21,6 +21,9 @@ production. were removed (deprecated since 1.27). * (T180921) $wgReferrerPolicy now supports having fallbacks for browsers that are not using the latest version of the Referrer Policy specification. +* $wgFragmentMode is now set to [ 'legacy', 'html5' ] by default. This is a first step of + migration to human-readable section IDs that will later result in 'html5' being the + default mode. === New features in 1.31 === * Wikimedia\Rdbms\IDatabase->select() and similar methods now support diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 9208dec80b..8f4c3468b0 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -3411,7 +3411,7 @@ $wgExperimentalHtmlIds = false; * * @since 1.30 */ -$wgFragmentMode = [ 'legacy' ]; +$wgFragmentMode = [ 'legacy', 'html5' ]; /** * Which ID escaping mode should be used for external interwiki links? See documentation diff --git a/includes/Setup.php b/includes/Setup.php index d1f225b5fc..3e37c9c9c1 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -360,6 +360,7 @@ unset( $repo ); // no global pollution; destroy reference // Convert this deprecated setting to modern system if ( $wgExperimentalHtmlIds ) { + wfDeprecated( '$wgExperimentalHtmlIds', '1.30' ); $wgFragmentMode = [ 'html5-legacy', 'html5' ]; } -- 2.20.1