MediaWiki 1.36

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

MediaWiki 1.36 は MediaWiki の廃止されたリリースです。 変更点の完全な一覧については、リリース ノート ファイルを参照してください。 2020年7月21日から2021年4月15日までに、番号が増える "wmf" ブランチを通じて、ウィキメディア財団のウィキ群に展開されました。 1.36.0 安定版リリースは2021年5月27日に公開されました。 1.36.4 をダウンロードするか、Git 内REL1_36 ブランチをチェックアウトして、このリリースに追随してください。 1.36 ブランチは、バージョン 1.36.4 で2022年6月3日にサポートが終了しました。

新機能

MediaWikiの新しいロゴ
MediaWikiの新しいロゴ
  • MediaWikiのロゴ変更されました。 これは、外装のフッターに表示される「Powered By MediaWiki」のボタンが異なることを意味します。
  • すべてのHTML5名前付きエンティティがウィキテキストで受け入れられるようになりました。
  • (T106263) ファイルの説明ページの代替サイズに2048pxが含まれるようになりました。

操作 API の変更

  • 「Access-Control-Max-Age」が、クロスオリジンAPIリクエスト($wgAllowedCorsHeaders )に許可されるヘッダーの既定のリストに追加されました。
  • 「ボット」権限を持つアカウントでは、設定に関係なく、API 編集を行うときにウォッチリストにページが自動的に追加されなくなりました。 これは、データベース内のウォッチリストデータのサイズを削減するためです。 APIボットの編集をウォッチリストへ追加するには、「watch」オプションを明示的に設定します。

アップグレードの注意点

  • MediaWiki 1.36では、PHP 国際化拡張機能(一般に Intl、ext-intl、またはphp-intlと呼ばれます) が必要になりました。
  • MediaWiki:自動ブロックのホワイトリストのブロック除外制御はMediaWiki:Block-autoblock-exemptionlistに移動されました。 この機能を使用する場合は、MediaWiki:Autoblock_whitelistページに移動してください。
  • (T275334) $wgExtensionFunctions は構成設定を変更するために使用されることがあります。 This is not safe; extension functions are run relatively late, some services are already initialised by that point and so they use the old configuration. Changes in 1.36 make this kind of breakage even more common. You can use the MediaWikiServices hook instead. (In the future there might be a dedicated hook for configuration changes.)
  • The MediaWiki update script, maintenance/update.php , used to accept `--nopurge` as an option to prevent clearing caches stored in the database during upgrade.

This is no longer encouraged, and the option has been removed.

設定

新しい設定オプション

  • (T256001) $wgManualRevertSearchRadius – この設定は、編集によってページが正確に以前の状態に復元された場合に、編集を元に戻したものとしてマークする新しい機能を制御します。 This configuration variable sets the maximum number of revisions of a page that will be checked against every new edit. Set this to 0 to disable the feature entirely.
  • (T244058) $wgOldRevisionParserCacheExpireTime This setting was added to control caching of ParserOutput for old (non-current) revisions.
  • (T265263) $wgRememberMe - This setting configures the "remember me" checkbox on account log-in systems via RememberMeAuthenticationRequest.
  • (T157145) $wgSkinMetaTags – この設定により、システム管理者は meta タグをサポートする外装を構成できます。 これらのタグにより、さまざまなソーシャル プラットフォームでの MediaWikiのページの共有がより充実したものになり、便利になります。
  • (T280944) $wgIncludejQueryMigrate – この設定により、システム管理者はjQuery Migrateプラグインを無効にできます。 It has been enabled by default since MediaWiki 1.27 . In future releases it will be disabled by default.

設定オプションの変更

  • $wgLogos – この設定により、サイトに表示されるロゴが選択されます。 MediaWikiのインストール時に表示されるサイトロゴの既定値は、MediaWikiの新しいロゴになります。
  • (T274695) $wgAjaxEditStash This setting, to disable the edit stashing feature when users start writing an edit summary, has been deprecated. In future releases, this feature will always be enabled.
  • $wgUploadStashScalerBaseUrl This setting, to enable remote on-demand media scaling, was deprecated. Use the `thumbProxyUrl` setting in $wgLocalFileRepo instead.
  • $wgSlaveLagWarning , $wgSlaveLagCritical These settings have been renamed, to $wgDatabaseReplicaLagWarning & $wgDatabaseReplicaLagCritical respectively. 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 try to read them.
  • $wgWANObjectCaches – The "coalesceKeys" option was removed without deprecation and replaced by a new "coalesceScheme" option, set to "hash_stop" by default.

If you use Dynomite, then set the new "coalesceKeys" option to "hash_tag". The "cluster" and "mcrouterAware" options were also removed without deprecation. Use "broadcastRoutingPrefix" instead.

設定オプションの削除

The last use of this setting was for pre-processor configuration, which was deprecated in 1.34 and removed in 1.35.

  • $wgEnableRestAPI This setting, ignored since 1.35, has been removed.
  • $wgPagePropsHaveSortkey This temporary setting has been removed, along with the schema change upgrade path it controlled. If your site is still using it, meaning you have not yet applied the `pp_sortkey` schema change from 1.24, you must now apply it before upgrading.
  • The deprecated password policies PasswordCannotMatchBlacklist and PasswordNotInLargeBlacklist were removed.

Please use PasswordCannotMatchDefaults and PasswordNotInCommonList respectively instead.

下位ページ