From: Max Semenik Date: Sat, 20 Jan 2018 02:36:30 +0000 (-0800) Subject: Set default fragment mode to [ 'legacy', 'html5' ] X-Git-Tag: 1.31.0-rc.0~831^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=commitdiff_plain;h=2639f3350167a4331dfa6120b9a47c80b731f518;hp=d9b7592d5e7b31c93b0d71852bd692682f73788b;p=lhc%2Fweb%2Fwiklou.git 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 --- 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' ]; }