置顶公告:【置顶】关于临时开启评论区所有功能的公告(2022.10.22) | 【置顶】关于本站Widget恢复使用的公告
  • 你好~!欢迎来到萌娘百科镜像站!如需查看或编辑,请联系本站管理员注册账号。
  • 本镜像站和其他萌娘百科的镜像站无关,请注意分别。

Help:MediaWiki 1.26

猛汉♂百科,万男皆可猛的百科全书!转载请标注来源页面的网页链接,并声明引自猛汉百科。内容不可商用。
跳到导航 跳到搜索
Icon-info.png
本页引自 https://www.mediawiki.org/wiki/MediaWiki_1.26 ,使用CC BY-SA 3.0协议授权。
目前本页对应的原文历史是 2015年11月25日 (三) 21:54 (9,896字节) 版本,请注意更新正文内容及本时间戳。


MediaWiki 1.26是当前MediaWiki的稳定版本。 请参见RELEASE-NOTES-1.26,文件完整的更改列表。 It was deployed on through incremental "1.26/wmfNN" branches s5.

1.26.0的稳定版已于2015年11月25日(星期三)发布。

下载最新快照或者查看REL1_26分支下in Git以关注最新的发布。

新特性

性能

  • ResourceLoader 现在以异步方式加载所有脚本。顶部队列和启动模块不再阻塞同步加载。
  • ResourceLoader 代码压缩现在缓存在APC内存中(如果可用),而不是缓存在数据库中。
  • 需要能被清除的缓存现在使用 WANObjectCache 接口。这对应新的 $wgMainWANCache 设置,其默认使用 $wgMainCacheType 的设置。
  • 需要快速轻量数据存储的调用者使用 $wgMainStash 来从 $wgObjectCaches 选择存储的类型。默认是本地数据库。
  • MediaWiki 命名空间中的用户界面消息重载现在将会被在 memcached 或者 APC 中缓存(如果可用),而不是 memcached 和本地文件中。
  • $wgTransactionalTimeLimit 被加入,其控制需要尽可能被原子化的潜在慢速的POST请求的请求时间的限制。

新的钩子

  • 添加了一个新钩子 'LogException' 以用来以非标准的方式记录日志。
  • 重新加入 'SpecialSearchResultsAppend' 钩子,它会在搜索结果列表被渲染之后发生。最初的用途是用来在搜索结果的最末尾添加“给我们反馈”的链接。
  • 添加了一个新钩子 'RejectParserCacheValue' 以允许扩展一个本应成功的解析缓存查找。其本意是允许阔扎按管理是否从缓存中去除老旧的HTML输出。
  • 添加了一个新钩子 'EnhancedChangesListModifyLineData' 和 'EnhancedChangesListModifyBlockLineData' 以修改用来在增强版最近更改和监视列表中构建行的数据。
  • 添加了一个新钩子 'RandomPageQuery' 以允许修改 特殊:随机页面 选择随机页面的方法。

Information on 'actual' watchers of a page

It's now possible to use the info action (accessible from the sidebar) to get a count of "actual watchers" of a page, in addition to the already-available count of all the users having it in their watchlist ([<tvar|info>https://moegirl.uk/index.php?title=%E8%90%8C%E5%A8%98%E7%99%BE%E7%A7%91:Support_Desk&action=info</> example]).


This information will make collaboration easier on your wiki, for instance by giving feedback to editors on how much their recent edits to a page were noticed by active users, or by setting reasonable expectations on how much a message on a certain talk page may be seen.


Other

  • Change tags can now be hidden in the interface by disabling the associated "tag-<id>" interface message.
  • The ':' (colon) character is now invalid in usernames for new accounts. Existing accounts are not affected.
  • The expiration of the UserID and Token login cookies ($wgExtendedLoginCookieExpiration) can be configured independently of the expiration of all other cookies ($wgCookieExpiration). [1]
  • Support for generating JPEG/PNG thumbnails from WebP images added if ImageMagick is used as image scaler ($wgUseImageMagick = true). Uploading of WebP images still disabled by default. Add $wgFileExtensions[] = 'webp'; to LocalSettings.php to enable uploading of WebP images. [2]


Upgrade notices for MediaWiki administrators

Syntax highlighting with the new Pygments library

重大更改

  • 弃用的API dumpwddx 现在已被完全移除。
  • $wgResourceLoaderUseESI 已经被弃用且移除。 这以前是一个实验性特征并且从来没有被默认开启过。
  • $wgResourceLoaderExperimentalAsyncLoading 已经被弃用且移除。 这个实验性特征从来没有被默认启用,在MediaWiki1.26中他已经是完全无用的了,现在 ResourceLoader 已经是完全异步的。
  • $wgMasterWaitTimeout 已被移除(在1.24版本被废弃)。
  • Fields in ParserOptions are now private. Use the accessors instead.
  • Extension:SyntaxHighlight GeSHi 已经被重写并且从原第三方库GeSHi转移到了第三方库Pygments。 它要求你的系统中需要安装有Python 2.6+ 或者 Python 3.3+。另外,如果你修改了CSS自定义规则的输出,这些规则可能会需要调整。详见ResourceLoader/Migration guide (users)#Font mw-geshi.

ResourceLoader asynchronicity and other JavaScript changes

Site scripts, user scripts and gadgets may cease to work in 1.26 unless they are updated. For gadgets in particular, ResourceLoader is no longer opt-in and is instead now mandatory. See this migration guide on how to fix.

Deprecations

  • $wgEnableParserCache was deprecated. Set $wgParserCacheType to CACHE_NONE instead if you want to disable the parser cache.
  • Certain AuthPlugin methods are deprecated in favor of new hooks as part of the upcoming AuthManager system:
    • AuthPlugin::initUser() is replaced by LocalUserCreated.
    • AuthPlugin::updateUser() is replaced by UserLoggedIn.
    • AuthPlugin::updateExternalDB() is replaced by the existing UserSaveSettings.
    • AuthPlugin::updateExternalDBGroups() is replaced by UserGroupsChanged.
    • AuthPluginUser::isHidden() is replaced by UserIsHidden.
    • AuthPluginUser::isLocked() is replaced by UserIsLocked.
  • The UserRights hook is deprecated in favor of the new UserGroupsChanged hook.
  • AuthPlugin::initUser() and AuthPlugin::updateUser() should no longer replace the passed User object.

设定改动(Configuration changes)

  • Users installing the Vector skin through composer will need to add wfLoadSkin( 'Vector' ); to their LocalSettings.php, it will no longer happen automatically.
  • 现在,$wgPasswordResetRoutes['email']的默认设置不再是true.
  • 现在,在非讨论名字空间(讨论命名空间以外的命名空间)在编辑器上的“签名按钮”会被默认隐藏。A new configuration variable, $wgExtraSignatureNamespaces|$wgExtraSignatureNamespaces, controls in which subject (non-talk) namespaces the "Signature" button on the edit toolbar will be displayed. [3]
  • $wgBlockAllowsUTEdit|$wgBlockAllowsUTEdit is now set to true by default. This allows blocked users to edit their talk pages unless explicitly disabled when they are being blocked. It does not affect existing blocks.

API changes

  • New-style continuation is now the default for API action=continue. Clients may use the 'rawcontinue' parameter to receive raw query-continue data, but the new style is encouraged as it's harder to implement incorrectly.
  • The deprecated dump and wddx formats were removed entirely.
  • The formatting of log parameters changed in logevents, recentchanges, and watchlist query modules (announcement)
  • action=import will now give an error if both the rootpage and namespace parameters are passed (announcement)
  • The output of meta=siteinfo while using formatversion=2 changed slightly (announcement)
  • The generatexml parameter to action=parse, prop=revisions, and prop=deletedrevisions is now deprecated (announcement)
  • list=random now has higher limits: 500 for normal users, 5000 for bots

Schema changes

(ToDo)


发行时间表

1.26版本的计划发布时间如下:

发布版本

日期

1.26.0 2015-11-25
1.26.1 预计2015年12月或2016年1月