MediaWiki 1.37

From mediawiki.org
This page is a translated version of the page MediaWiki 1.37 and the translation is 100% complete.
PHP 8 を使用する場合は、MediaWiki 1.38.4 以降を使用することをお勧めします。 PHP 8 はウィキメディアのウィキ群では使用されていないため、あまりテストされていませんが、他のグループでは MediaWiki を PHP 8 で問題なく使用しています。 MediaWiki を PHP 8 で使用していてバグが発生した場合は、バグ報告をお願いします。 詳細情報は タスク T248925 を参照してください。
警告 警告: MediaWiki 1.37.0 には非常に深刻なセキュリティ上の問題が含まれています。 1.37.1 以降にアップグレードしてください。 詳細情報は 2021-12 セキュリティについて/FAQ を参照してください。

MediaWiki 1.37 は MediaWiki の廃止されたリリースです。 変更点の完全な一覧については、リリース ノート ファイルを参照してください。 2021年4月より、番号が増える"wmf"ブランチを通じて、ウィキメディア財団のウィキ群に展開されました。 1.37.0 安定版リリースは2021年11月18日に公開されました。 Git 内REL1_37 ブランチをチェックアウトして、このリリースに追随してください。 1.37 ブランチは、バージョン 1.37.6 で2022年11月30日にサポートが終了しました。

新機能

操作 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().

除去された設定

下位ページ