MediaWiki 1.37
Appearance
MediaWiki |
---|
|
所有版本 |
版本生命周期 |
如果使用PHP8,建议使用MediaWiki 1.38.4或更高版本。 PHP8尚未被维基媒体下的各wiki使用,因此没有得到太多测试,但有其他组织在PHP8上运行MediaWiki时并未遇到问题。 如果您在PHP8上使用MediaWiki时遇到任何问题,请在此处报告。 参见工單T248925以获取更多信息。
MediaWiki 1.37 是 MediaWiki 已廢止的版本。
請参阅发行说明 文件以获取完整更新列表。
自2021年4月起,此版本已经以增量更新的 "wmf"-分支部署在维基媒体基金会管理的wiki上。
1.37.0 的穩定版本已於2021年11月8日推出。
在Git 檢查REL1_37
分支来获得此版本。 1.37版分支,帶著1.37.6版,在2022年11月30日走到盡頭。
MediaWiki 1.37 |
---|
在维基媒体网站上部署 |
新功能
- 新的
wikipage.indicator
與JavaScript掛鉤 (change 721324). - MediaWiki現在對JPEG2000採有限度的支援。
Action API 变更
- (T280806) The API methods for fetching tokens which were deprecated in MediaWiki 1.24 have been removed. action=query&meta=tokens&type= should be used instead. Please note, some token types no longer exist, and you should just use type=csrf for those instead.
- action=query&prop=info&intoken -> action=query&meta=tokens&type=csrf
- action=tokens&type= -> action=query&meta=tokens&type=
- action=query&list=recentchanges&rctoken -> action=query&meta=tokens&type=csrf
- action=query&prop=revisions&rvtoken=rollback -> action=query&meta=tokens&type=rollback
- action=query&meta=userinfo&uiprop=preferencestoken -> action=query&meta=tokens&type=csrf
- action=query&list=users&ustoken=userrights -> action=query&meta=tokens&type=userrights
配置更改
- (T242768) The PasswordCannotMatchUsername password policy has been removed, please use PasswordCannotBeSubstringInUsername instead. If you have not customised your password policies, there will be nothing to do here.
最新配置
- $wgBrowserFormatDetection - This setting allows the enabling or disabling of automatic detection of possible phone numbers in a webpage in iOS Safari.
- $wgParserEnableLegacyMediaDOM - This setting defaults to true, and enables the legacy media HTML structure in the output from the Parser. The alternative modern HTML structure for media is described at https://www.mediawiki.org/wiki/Parsing/Media_structure. In a future release of MediaWiki, this option will default to false, so it's a good idea to test this setting on your wiki early and report any issues.
已變更配置
- $wgContentHandlerTextFallback - This migration setting, which defines how to react if a plain text version of a non-text Content object is requested using ContentHandler::getContentText(), is deprecated.
- $wgActions – This setting lets sysadmins override which actions can be used. It has been re-worked to support injecting dependencies into Action sub-classes as part of wider work on dependency injection. Previously, $wgActions was an array where the keys were the names of actions, and the values had the following impacts (for a given key 'Foo'):
- `true`: use the class 'FooAction' unless for a specific page WikiPage::getActionOverrides() wants to override that action
- a string: use the class with that name, and do not allow over-riding on a per-page basis
- `false`: the action is disabled
- a callable: use the Action instance returned by invoking that callback, and do not allow overriding on a per-page basis
- an object: use that specific Action instance, and do not allow overriding on a per-page basis.
As part of T253078, values can now be arrays that are not callables, which are treated as ObjectFactory specs, allowing for services to be injected. Additionally, the distinction between values that allow per-page overrides and those that do not be removed - all actions can now be overridden on a per-page basis using WikiPage::getActionOverrides().
- $wgShellboxUrl – This setting, new in 1.36 to configure the novel Shellbox encapsulation system, is now deprecated; use $wgShellboxUrls as a mapping of service => URL instead.
- $wgIncludejQueryMigrate – This setting, introduced in 1.29 to on whether to provide a migration layer for jQuery, has now switched its default value from true to false. This may break gadgets that depended on methods that were removed in jQuery 3 in 2017. See T280944 for more information.
- A number of settings have been renamed. The former configuration variable names are deprecated, but will be used as the fallback if they are still set, and remain temporarily available for extensions which might try to read them:
- $wgFileBlacklist is now $wgProhibitedFileExtensions
- $wgMimeTypeBlacklist is now $wgMimeTypeExclusions
- $wgEnableUserEmailBlacklist is now $wgEnableUserEmailMuteList
- $wgShortPagesNamespaceBlacklist is now $wgShortPagesNamespaceExclusions
- $wgMimeTypeExclusions - As well as being renamed, this configuration array now also prohibits the RFC 4329 form of JavaScript, 'application/javascript', as well as previous MIME types.
- $wgFragmentMode - This setting, which determines the encoding of section IDs, has now switched its default value from legacy-first to html5-first: both the HTML5 anchor and the legacy percent-encoding-style anchor will still be generated for section titles, but references to them will use the HTML5 version, resulting in human-readable fragments.
已移除配置
- $wgLegacyJavaScriptGlobals , deprecated in 1.36.
- (T274695) $wgAjaxEditStash , deprecated in 1.36.
- $wgShowDBErrorBacktrace , deprecated and non-functional since 1.32.
- $wgShowSQLErrors , deprecated and non-functional since 1.32.
- $wgLangObjCacheSize , without deprecation; the LanguageFactory service now always retains at most 10 objects in its LRU-cache.
- $wgDjvuToXML , without deprecation; the tool it enables is obsolete and abandoned upstream. Use $wgDjvuDump to use that tool instead.
子页面
- MediaWiki 1.37/Deprecation of legacy API token parameters
- MediaWiki 1.37/Roadmap
- MediaWiki 1.37/wmf.1
- MediaWiki 1.37/wmf.1/Changelog
- MediaWiki 1.37/wmf.10/Changelog
- MediaWiki 1.37/wmf.11
- MediaWiki 1.37/wmf.11/Changelog
- MediaWiki 1.37/wmf.12
- MediaWiki 1.37/wmf.12/Changelog
- MediaWiki 1.37/wmf.13/Changelog
- MediaWiki 1.37/wmf.14
- MediaWiki 1.37/wmf.14/Changelog
- MediaWiki 1.37/wmf.15
- MediaWiki 1.37/wmf.15/Changelog
- MediaWiki 1.37/wmf.16
- MediaWiki 1.37/wmf.16/Changelog
- MediaWiki 1.37/wmf.17
- MediaWiki 1.37/wmf.17/Changelog
- MediaWiki 1.37/wmf.18
- MediaWiki 1.37/wmf.18/Changelog
- MediaWiki 1.37/wmf.19
- MediaWiki 1.37/wmf.19/Changelog
- MediaWiki 1.37/wmf.2/Changelog
- MediaWiki 1.37/wmf.20
- MediaWiki 1.37/wmf.20/Changelog
- MediaWiki 1.37/wmf.21
- MediaWiki 1.37/wmf.21/Changelog
- MediaWiki 1.37/wmf.22
- MediaWiki 1.37/wmf.22/Changelog
- MediaWiki 1.37/wmf.23
- MediaWiki 1.37/wmf.23/Changelog
- MediaWiki 1.37/wmf.3
- MediaWiki 1.37/wmf.3/Changelog
- MediaWiki 1.37/wmf.4
- MediaWiki 1.37/wmf.4/Changelog
- MediaWiki 1.37/wmf.5
- MediaWiki 1.37/wmf.5/Changelog
- MediaWiki 1.37/wmf.6
- MediaWiki 1.37/wmf.6/Changelog
- MediaWiki 1.37/wmf.7
- MediaWiki 1.37/wmf.7/Changelog
- MediaWiki 1.37/wmf.8
- MediaWiki 1.37/wmf.8/Changelog
- MediaWiki 1.37/wmf.9
- MediaWiki 1.37/wmf.9/Changelog