Set default fragment mode to [ 'legacy', 'html5' ]
authorMax Semenik <maxsem.wiki@gmail.com>
Sat, 20 Jan 2018 02:36:30 +0000 (18:36 -0800)
committerMax Semenik <maxsem.wiki@gmail.com>
Sat, 20 Jan 2018 02:36:30 +0000 (18:36 -0800)
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
includes/DefaultSettings.php
includes/Setup.php

index dd00228..1008b05 100644 (file)
@@ -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
index 9208dec..8f4c346 100644 (file)
@@ -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
index d1f225b..3e37c9c 100644 (file)
@@ -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' ];
 }