MediaWiki 1.39/zh

MediaWiki 1.39是MediaWiki的一个未来长期支持发行版本. 参阅文件获取完整更新列表. 从2022年3月到2022年9月，通过增量更新的"wmf"-分支部署在维基媒体基金会管理的wiki上. 1.39.0的稳定版本预计于2022年11月推出. 下载或者使用git更新 分支来获得此版本.



新功能

 * 在页面保存时的可选自动用户创建（$wgAutoCreateTempUser）
 * Administrators now have the option to delete/undelete the associated "Talk" page when they are (un)deleting a given page. `deletetalk` and `undeletetalk` options were added to the 'delete' and 'undelete' action APIs in MW 1.38.
 * ` = ` is now a wikitext built-in magic word, expanding to `=`. This is conventionally used as an escape mechanism to allow the use of `=` in unnamed template arguments.  Defining Template:= to expand to something other than `=` has been deprecated since 1.36, with affected pages put into a special tracking category for migration.
 * (T284020) Bot passwords are now supported when using the REST API.



Action API 变化

 * New `undeletetalk` parameter on action=undelete that allows you to restore all revisions of the associated talk page.



配置变化


新配置

 * $wgAutoCreateTempUser – 此配置项控制页面保存时的自动用户创建.
 * $wgCopyUploadAllowOnWikiDomainConfig – This configures if administrators can use the MediaWiki:Copyupload-allowed-domains system message to define which domains can be used with the upload-by-url tool.
 * $wgCdnMatchParameterOrder – This can be set to false if MediaWiki is behind a CDN that re-orders query parameters. This will make the code that matches request URLs to canonical CDN URLs insensitive to parameter order.
 * $wgMultiShardSiteStats – This allows you to split site_stats across multiple rows. Only useful for very large, heavily edited wikis. (T306589)



已變更配置

 * $wgInvalidUsernameCharacters – This setting now contains the char '>', which is now the reserved delimiter for external user names.
 * $wgLocalFileRepo – The default serialization method for file meta-data has been changed to JSON. You can revert it to PHP by setting the property 'useJsonMetadata' to false.
 * $wgLBFactoryConf – The 'configCallback' flag can now be set to a callback function that returns an array with keys to update in $wgLBFactoryConf. This can be used to update the database configuration on the fly, e.g. to take replica hosts out of rotation.
 * $wgDBservers and $wgLBFactoryConf – The DBO_SSL flag in has been deprecated in favour of a boolean "ssl" parameter.
 * $wgObjectCaches – The 'globalKeyLB' and 'localKeyLB' flags are no longer supported.



已移除配置

 * $wgMultiContentRevisionSchemaMigrationStage - This transition flag, deprecated since MediaWiki 1.35, has been removed; the data migration is over.
 * $wgActorTableSchemaMigrationStage - This transition flag has been removed; the data migration is over.
 * $wgWikiFarmSiteDetector – This experimental setting has been removed without replacement. Use the MW_WIKI_NAME environment variable to specifiy the name of the site for which to load configuration. Using the WIKI_NAME environment variable for this purpose is deprecated.
 * $wgParserCacheUseJson - The ParserCache now always uses JSON serialization. Reading old non-JSON cache entries is still supported. The setting had been deprecated since 1.36.
 * $wgAllowJavaUploads - To allow uploads of JAR files, remove application/java from $wgMimeTypeExclusions.
 * $wgMaxRedirects – This broken feature was removed, as it never worked as intended (T296430).
 * $wgElementTiming – This experimental, default-disabled feature has been removed without replacement.
 * $wgPriorityHints and $wgPriorityHintsRatio – The related experimental feature has been removed without replacement.
 * $wgIncludeLegacyJavaScript – This flag has been removed, without loss of any functionality in this release. Most former "wikibits" functions were removed after deprecation in previous releases. The remaining functions, such as importScript, are now available unconditionally.
 * $wgLegacySchemaConversion - This unused setting has been removed.
 * $wgInterwikiPrefixDisplayTypes - This unused setting has been removed.
 * $wgMangleFlashPolicy – This is no longer functional, and is now deprecated. Users who are somehow still using Flash as a browser extension will be exposed to CSRF vulnerabilities.