MediaWiki 1.36

This page is a translated version of the page MediaWiki 1.36 and the translation is 89% complete.
Outdated translations are marked like this.
如果您使用PHP8,我们推荐您使用MediaWiki 1.38.4+或即将发布的MediaWiki 1.39.0+。 PHP8尚未被维基媒体下的各wiki使用,因此没有得到太多测试,但有其他组织在PHP8上运行MediaWiki时并未遇到问题。 如果您在PHP8上使用MediaWiki时遇到任何问题,请在此处报告 参见任务T248925以获取更多信息。
警告 警告: MediaWiki 1.36.0至1.36.2包含一个非常严重的安全漏洞。 请升级到1.36.3或更新版本。 参见2021-12安全发布/常见问题解答 以获取更多信息。

MediaWiki 1.36是MediaWiki的既往发行版本。 参阅发行说明文件获取完整更新列表。 从2020年7月21日到2021年4月15日,通过增量更新的"wmf"-分支部署在维基媒体基金会管理的wiki上。 1.36.0的穩定發行已在2021年5月27日釋出。 下载mediawiki-1.38.4.tar.gz或者使用git更新REL1_36分支来获得此版本。 The 1.36 branch, with the version 1.36.4, reached its end-of-life on 03 June 2022.


New MediaWiki logo
New MediaWiki logo
  • The logo of MediaWiki has changed. This means that the "Powered By MediaWiki" button shown in the skin footer will be different.
  • All HTML5 named entities are now accepted in wikitext.
  • (T106263) The file description page's alternate sizes now include 2048px.

Action API变化

  • `Access-Control-Max-Age` was added to the default list of headers allowed for cross-origin API requests ($wgAllowedCorsHeaders ).
  • Accounts with the 'bot' right no longer have pages automatically added to the watchlist when making API edits, regardless of their preferences. This is to reduce the size of the watchlist data in the database. To add API bot edits to the watchlist, explicitly set the 'watch' option.


  • MediaWiki 1.36 now requires the PHP internationalization extension (commonly referred to as Intl, ext-intl, or php-intl).
  • The MediaWiki:Autoblock_whitelist block exemption control has been moved to MediaWiki:Block-autoblock-exemptionlist. If you use this feature, please move the MediaWiki:Autoblock_whitelist page.
  • (T275334) $wgExtensionFunctions is sometimes used to change configuration settings. This is not safe; extension functions are run relatively late, some services are already initialized 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 setting controls a new feature that marks edits as reverts if they restore the page to an exact previous state. 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 – This setting lets sysadmins configure skins that support meta tags. These tags make sharing of MediaWiki pages on a variety of social platforms more contentful and thus useful.
  • (T280944) $wgIncludejQueryMigrate - This setting lets sysadmins disable the jQuery Migrate plugin. It has been enabled by default since MediaWiki 1.27. In future releases it will be disabled by default.


  • $wgLogos – This setting selects the logo shown on the site. The default value for the site logo, which is shown in an install if you have not set one, will now be the new logo of 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 and $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.