MediaWiki 1.38

From mediawiki.org
This page is a translated version of the page MediaWiki 1.38 and the translation is 52% complete.
Outdated translations are marked like this.

MediaWiki 1.38 は MediaWiki の廃止されたリリースです。 変更点の完全な一覧については、リリース ノート ファイルを参照してください。 2021年9月から2022年3月に、番号が増える"wmf"ブランチを通じて、ウィキメディア財団のウィキ群に展開されました。 1.38.0 安定版リリースは2022年6月2日に公開されました。 1.38.7 をダウンロードするか、Git 内REL1_38 ブランチをチェックアウトして、このリリースに追随してください。

システム管理者向けの設定変更

MediaWiki 1.38 から設定の読み込みに新システムを導入しました。 新システムはこれまでの設定方法に完全互換性があり、さらに新しい機能が追加されました。 関心のある皆さんは設定の読み込みに関する新しい方法を試用して、もし何か問題に遭遇した場合はレポートをお願いします。

新しい設定

  • (T297708) $wgMaxExecutionTimeForExpensiveQueries – この設定はいくつかの負担の多いクエリページにおいて、上限値の制御に利用できます( 最近の更新、投稿記録など)
  • $wgBrowserFormatDetection – この設定により、ブラウザによるフォーマットの自動検出と処理を上書きすることができます。 これは当初、iOSのブラウザSafariでウィキページを表示したとき、誤って電話番号に自動リンクがつかないよう予防策として使われました。この機能を再度、有効にすることも可能で、あるいは他のブラウザの癖に対応するためローカル展開することも可能です。
  • (T240685) $wgMetricsTarget, $wgMetricsFormat, and $wgMetricsPrefixThese provide configuration for a new MetricsFactory service with support for the dogstatsd format, intended for integration with Prometheus.
  • $wgGroupInheritsPermissionsThis setting allows inheriting permissions, both granted and revoked, from another group.
  • $wgForeignApiReposForeignAPIRepo now has a apiMetadataExpiry option to control for how long file metadata is cached. さらに、デフォルトが1時間から4時間に変更されました。
  • $wgSkinsPreferredThis lets you set a list of preferred skins to be listed higher in Special:Preferences.
  • 警告 警告: EXPERIMENTAL (see the docs on the new system to load configuration)
    • $wgWikiFarmSettingsDirectory – サイト固有の設定ファイルを格納するディレクトリです。 Setting this will enable multi-tenant ("wiki farm") mode, causing site-specific settings to be loaded based on information from the web request.
    • $wgWikiFarmSettingsExtensionThe file extension to be used when looking up site-specific settings files in $wgWikiFarmSettingsDirectory, such as json or yaml.
    • $wgWikiFarmSiteDetector – 現在のリクエストのためのウィキの名前を返すコールバック関数です。 Replaced by the MW_WIKI_NAME environment variable in 1.39. This is used in multi-tenant ("wiki farm") mode to determine which settings file to load from $wgWikiFarmSettingsDirectory.
  • $wgEnableRemoteBagOStuffTestsThis replaces the environment variable PHPUNIT_USE_BAGOSTUFF.
  • (T230211) $wgForceDeferredUpdatesPreSend – 遅延更新を、応答を送信した後に実行しようとするのではなく、クライアントに応答を送信する前に実行するよう強制する。 Setting this to true is useful for end-to-end testing, to ensure that the effects of a request are visible to any subsequent requests, even if they are made immediately after the first one. Note however that this does not ensure that database replication is complete, nor does it execute any jobs enqueued for later.
  • $wgTemplateLinksSchemaMigrationStagetemplatelinks table schema migration stage, for normalizing tl_namespace and tl_title fields.

変更された環境設定

  • $wgStyleDirectory and $wgExtensionDirectoryThese are now set later, so can no longer be used within LocalSettings.php unless explicitly set in that file.
  • $wgFileBackends – この設定は、オプションとしてfileJournalを取ることはなくなりました。
  • $wgMaxImageAreaThis setting may now be set to false to disable size checking before scaling. Extensions can still override its value by using the BitmapHandlerCheckImageArea hook.
  • $wgAjaxUploadDestCheck(廃止予定) Act as always-true.
  • $wgInterwikiCache – CDBファイルの文字列値には対応しなくなりました。
  • (T292321) $wgParserOutputHooks(廃止予定) これを使った調整は、代わりにOutputPageParserOutputHookで行う必要があります。
  • $wgExternalStoresThis is newly documented in includes/externalstore/README.md.

除去された設定

  • $wgShellLocale – この設定は、ロケール依存の問題に対する解決策としては欠陥があったため、削除されました。 MediaWiki will now always set a locale of C.UTF-8 or C and works around the remaining problems of the C locale by not using escapeshellarg. This follows the direction of PHP 8.0, which sets a locale of C by default instead of respecting LC_CTYPE.
  • (T293848) $wgLoggedOutMaxAge – 1.35で追加された実験が削除されました。
  • $wgIncludejQueryMigrate(1.36 で廃止予定) We only support jQuery v3.
  • $wgUseCategoryBrowser – この実験的な機能は削除されました。 If you still need to use this feature, please see Extension:CategoryExplorer .
  • $wgStyleSheetPath(1.3 で廃止予定) Alias for $wgStylePath.

New user-facing features

同包された拡張機能

  • (T191740) AbuseFilter の拡張機能がMediaWikiに同包されるようになりました。 編集やファイルのアップロードなど、利用者による操作が特定の条件に一致した場合に、特権的な利用者が特定の対処操作を設定できるようにする不正利用防止機能です。
  • (T232948) Math の拡張機能がMediaWikiに同包されるようになりました。 LaTeXのサブセットで書かれた数式をMathMLで表示し、フォールバックのSVG画像で表示するコンテンツ機能です。 既定では、ウィキメディアの mathoidサービスを使って各式をレンダリングしますが、ネットワークの分離やパフォーマンスのためにローカル レンダリングを設定できます。
  • (T191743) Minerva の外装がMediaWikiに同包されるようになりました。 特にモバイル用に最適化された、シンプルで軽量かつ拡張性の高い外装です。MobileFrontend 拡張機能 (別途必要) とうまく統合されていますが、通常のデスクトップ用外装としても使用可能です。

その他の変更

  • (T284921) The "auto-number headings" feature was removed following a consultation, due to performance reasons.

New operator/developer features

  • The configuration mechanism changed substantially; you can read more about how.
  • 警告 警告: EXPERIMENTAL: The environment variable MW_CONFIG_FILE can be used to specify the location of the settings file. This allows alternative settings files to be loaded depending on the environment. Settings files may be given as PHP files like the traditional LocalSettings.php file, or they may use JSON or YAML format. Manual:YAML settings file format を参照してください
  • Added a deleteUserEmail maintenance script – This file enables the deletion of a given user's associated email address. It can be helpful for privacy-preserving operations.
  • The description array for constructing an HTMLForm now can use 'disable-if' to disable fields on a condition easily, supported expressions are the same as 'hide-if'.
  • There is a new interface, IForeignRepoWithMWApi, to allow you to mark file repos provided by an extension as supporting making API queries against the foreign file repo so that extensions like TimedMediaHandler that depend on this can stop hard-coding looking for specific class names.
  • 警告 警告: EXPERIMENTAL Added support for an easy to configure multi-tenant ("wiki farm") mode: Settings for each site can be placed in a directory specified by $wgWikiFarmSettingsDirectory. Site detection is controlled by $wgWikiFarmSiteDetector and defaults to the requested host name. For example, setting $wgWikiFarmSettingsDirectory = "sites" would cause the settings for wiki.example.com to be loaded from "sites/wiki_example_com.yaml". WARNING: YAML files under the Web root may be accessible to browsers, please take appropriate measures to protect them from access via HTTP.
  • Running QUnit tests for an individual test suite module is possible with grunt qunit --qunit-component={componentName}, where {componentName} is "MediaWiki" to run core's QUnit tests or the skin or extension name.
  • The mediawiki.mixins module now has a .user-select() Less mixin.

External library changes

New external libraries

  • symfony/yaml was promoted from development-only.

Changed external libraries

  • Updated OOUI from v0.42.0 to v0.43.2.
  • Updated Vue from 2.6.11 to 3.2.23.
  • Updated WVUI from v0.3.0 to v0.4.0.
  • Updated composer/semver from 3.2.5 to 3.2.6.
  • Updated guzzlehttp/guzzle from 7.2.0 to 7.4.1.
  • Updated pear/mail_mime from 1.10.9 to 1.10.11.
  • Updated pear/net_smtp from 1.9.2 to 1.10.0.
  • Updated psr/log from 1.1.3 to 1.1.4.
  • Updated psy/psysh from 0.10.5 to 0.11.1.
  • Updated symfony/polyfill-php80 from 1.23.1 to 1.25.0.
  • Updated wikimedia/assert from 0.5.0 to 0.5.1.
  • Updated wikimedia/cdb from 1.4.1 to 2.0.0.
  • Updated wikimedia/ip-utils from 3.0.2 to 4.0.0.
  • Updated wikimedia/minify from 2.2.4 to 2.2.6.
  • Updated wikimedia/object-factory from 3.0.2 to 4.0.0.
  • Updated wikimedia/parsoid from v0.14.0-a14 to v0.15.0.
  • Updated wikimedia/purtle from 1.0.7 to 1.0.8.
  • Updated wikimedia/request-timeout from 1.1.0 to 1.2.0.
  • Updated wikimedia/shellbox from 2.0.0 to 3.0.0.
  • Updated wikimedia/wrappedstring from 3.2.0 to 4.0.1.
Changed development-only external libraries
  • Updated QUnit from 2.16.0 to 2.18.0.
  • Updated composer/semver from 3.5.4 to 3.5.5.
  • Updated composer/spdx-licenses from 1.5.4 to 1.5.5.
  • Updated doctrine/dbal for PHP < 7.3 from 2.10.4 to 2.13.6.
  • Updated doctrine/dbal for PHP >= 7.3 from 3.0.0 to 3.1.5.

Removed external libraries

  • jquery.jStorage, deprecated since MW 1.28; use mediawiki.storage instead.

操作 API の変更

  • New deletetalk parameter on action=delete that allows you to delete the associated talk page of a subject page.
  • (T117549) New variant parameter for all API actions, for specifying language variant (akin to the existing variant parameter for index.php).

言語の更新

MediaWiki supports over 400 languages. Many localisations are updated regularly. Below only new and removed languages are listed, as well as changes to languages because of Phabricator reports.

  • (T292166) ロンバルド語の名前空間名を更新しました。
  • (T299201) アンギカ語 (anp) のオートニムを अंगिका に変更しました
  • (T298309) アブハズ語 (ab) のオートニムを аԥсшәа に変更しました
  • (T302972) ルンディ語 (rn) のオートニムを ikirundi に変更しました
  • (T220303) Show numbered lists with Burmese numerals in relevant languages
  • (T291899) 湘語 (hsn) への言語対応を追加しました。
  • (T292612) S'gaw Karen (ksw) への言語対応を追加しました。
  • (T293656) フラフラ語 (gur) への言語対応を追加しました。
  • (T294729) Pa'O (blk) への言語対応を追加しました。
  • (T296286) スコルト・サーミ語 (sms) への言語対応を追加しました。
  • (T296612) Makhuwa (vmw) への言語対応を追加しました。
  • (T296707) ガ語 (gaa) への言語対応を追加しました。
  • (T297073) Nanai (gld) への言語対応を追加しました。
  • (T297074) Nawdm (nmz) への言語対応を追加しました。
  • (T298075) Northern Thai (nod) への言語対応を追加しました。
  • (T298182) カーボベルデ・クレオール語 (kea) への言語対応を追加しました。
  • (T298385) ニェエンガトゥ語 (yrl) への言語対応を追加しました。
  • (T299329) フォン語 (fon) への言語対応を追加しました。
  • (T300474) ニャンコレ語 (nyn) への言語対応を追加しました。
  • (T302556) Pannonian Rusyn (rsk) への言語対応を追加しました。

下位ページ