使用說明:MediaWiki 1.26
目前本頁對應的原文歷史是 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
重大更改
- 棄用的API
dump
和wddx
現在已被完全移除。 $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
toCACHE_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 byLocalUserCreated
.AuthPlugin::updateUser()
is replaced byUserLoggedIn
.AuthPlugin::updateExternalDB()
is replaced by the existingUserSaveSettings
.AuthPlugin::updateExternalDBGroups()
is replaced byUserGroupsChanged
.AuthPluginUser::isHidden()
is replaced byUserIsHidden
.AuthPluginUser::isLocked()
is replaced byUserIsLocked
.
- The
UserRights
hook is deprecated in favor of the newUserGroupsChanged
hook. AuthPlugin::initUser()
andAuthPlugin::updateUser()
should no longer replace the passedUser
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 totrue
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
andwddx
formats were removed entirely. - The formatting of log parameters changed in
logevents
,recentchanges
, andwatchlist
query modules (announcement) action=import
will now give an error if both therootpage
andnamespace
parameters are passed (announcement)- The output of
meta=siteinfo
while usingformatversion=2
changed slightly (announcement) - The
generatexml
parameter toaction=parse
,prop=revisions
, andprop=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月 |