Merge "build: Remove 'stylelint' package as it gets pulled-in by 'stylelint-config...
[lhc/web/wiklou.git] / RELEASE-NOTES-1.32
1 == MediaWiki 1.32 ==
2
3 THIS IS NOT A RELEASE YET
4
5 MediaWiki 1.32 is an alpha-quality branch and is not recommended for use in
6 production.
7
8 === Configuration changes in 1.32 ===
9
10 ==== New configuration ====
11 * $wgJpegQuality – The quality of JPEG thumbnails is now configurable through
12 this setting. The default is 80, which matches the quality of JPEG thumbnails
13 previously generated by ImageMagick. The quality of JPEG thumbnails generated
14 by GD was previously 95, but now uses the $wgJpegQuality setting as well.
15 * $wgCookieSetOnIpBlock - This determines whether to set a cookie when an IP
16 user is blocked. Doing so means that a blocked user, even after moving to a
17 new IP address, will still be blocked.
18 * $wgRawHtmlMessages – This new configuration setting is added for listing
19 messages which are displayed as raw HTML.
20 * $wgCSPHeader and $wgCSPReportOnlyHeader – You can now define a
21 "Content Security Policy" for your wiki. This adds a defense-in-depth feature
22 to stop an attacker who has found a bug in the parser allowing them to insert
23 malicious attributes. Disabled by default. (T135963)
24 * $wgGroupPermissions – A new user group, 'interface-admin', is added for
25 controlling access to sitewide CSS/JS (and editing other users' CSS/JS). No
26 other group has 'editsitecss', 'editusercss', 'editsitejs' or 'edituserjs'
27 by default.
28 * $wgGrantPermissions – A new grant group, 'editsiteconfig', is added for
29 granting the above rights.
30 * $wgDBDefaultGroup – A default database group for use by maintenance scripts.
31 * $wgResourceLoaderEnableJSProfiler – This new configuration setting lets you
32 enable client-side profiling of JavaScript modules; it is off by default.
33 * (T193868) $wgChangeTagsSchemaMigrationStage — This temporary configuration
34 setting allows sysadmins to gradually migrate the database table schema for
35 how change tags are stored.
36 * (T199334) $wgTagStatisticsNewTable — This temporary configuration setting
37 allows sysadmins to enable the caching of Special:Tags via the new
38 change_tag_def table.
39
40 ==== Changed configuration ====
41 * $wgUseAjax – This setting, deprecated in 1.31, is now ignored.
42 * $wgDefaultUserOptions – The default watchlist view time (watchlistdays) has
43 been increased from 3 to 7 days. (T194414)
44 * $wgGroupPermissions – The right to edit sitewide Javascript
45 (e.g. MediaWiki:Common.js), CSS or JSON was separated from 'editinterface'
46 and is available under 'editsitejs'/'editsitecss'/'editsitejson'. Having
47 'editinterface' is still necessary to edit such pages.
48 * $wgMultiContentRevisionSchemaMigrationStage now defaults to writing both the
49 old and the new schema, but reading the new schema, so Multi-Content Revisions
50 (MCR) are now functional per default. The new default value of the setting is
51 SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_NEW.
52 * $wgActorTableSchemaMigrationStage no longer accepts MIGRATION_WRITE_BOTH or
53 MIGRATION_WRITE_NEW. It instead uses SCHEMA_COMPAT_WRITE_BOTH |
54 SCHEMA_COMPAT_READ_OLD and SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_NEW
55 for intermediate stages of migration.
56 * $wgDBTableOptions – The default table options now use the binary charset. The
57 default was already overridden in the installer-generated LocalSettings.php,
58 and so is always set to binary after the installer UI option was removed. The
59 default value is only used when the installer installs an extension.
60 * $wgPopularPasswordFile — The location of the default popular passwords file
61 has been moved to be in line with other non-PHP files used by libraries and
62 classes.
63 * $wgEnableImageWhitelist is now disabled by default, as it opens up a hole for
64 potential privacy leaks by administrators. You can check
65 "MediaWiki:External image whitelist" on your wiki to see whether the feature
66 was ever used, and whether it needs to be re-enabled.
67
68 ==== Removed configuration ====
69 * $wgEnableAPI and $wgEnableWriteAPI – These settings, deprecated in 1.31,
70 have been removed. (T115414)
71 * $wgSiteSupportPage – This setting, unused since 1.5, was removed.
72 * $wgBrowserBlacklist – This setting, deprecated in 1.30, was removed.
73 * $wgExperimentalHtmlIds – This setting, deprecated since 1.30, was removed.
74 The 'html5-legacy' value for $wgFragmentMode is no longer accepted.
75 * $wgPasswordSenderName - This setting, ignored since 1.23 by MediaWiki and
76 most extensions, is no longer set. Instead, you can modify the system
77 message `emailsender`.
78 * $wgTidyConfig – The experimental Html5Internal and Html5Depurate tidy drivers
79 were removed. RemexHtml, which is the default, should be used instead.
80 * (T181318) The $wgStyleVersion setting and its appendage to various script and
81 style URLs in OutputPage, deprecated in 1.31, was removed.
82 * (T140807) The wgResourceLoaderLESSImportPaths configuration option was removed
83 from ResourceLoader. Instead, use `@import` statements in LESS to import
84 files directly from nearby directories within the same project.
85 * (T140804) The wgResourceLoaderLESSVars configuration option, deprecated
86 since 1.30, was removed. Instead, to expose variables from PHP to LESS, use
87 the ResourceLoaderModule::getLessVars() method.
88 * $wgResourceLoaderValidateStaticJS – This setting, unused since MediaWiki 1.18,
89 was removed.
90 * Two temporary variables for deploying the feature of filters on change lists,
91 $wgStructuredChangeFiltersShowPreference introduced in MediaWiki 1.30 and
92 $wgStructuredChangeFiltersOnWatchlist in 1.31, were removed.
93
94 === New features in 1.32 ===
95 * (T112474) Generalized the ResourceLoader mechanism for overriding modules
96 using a particular page during edit previews.
97 * (T12331) You can now log page creation events by setting $wgPageCreationLog
98 to true.
99 * Added 'ApiParseMakeOutputPage' hook.
100 * (T174313) Added checkbox on Special:ListUsers to display only users in
101 temporary user groups.
102 * (T152462) A cookie can now be set when an IP user is blocked to track that
103 user if they move to a new IP address. This is disabled by default.
104 * (T194950) Added 'ApiMaxLagInfo' hook.
105 * SpecialPage::checkLoginSecurityLevel() will now preserve POST data when
106 reauthenticating.
107 * FormSpecialPage::execute() will now call checkLoginSecurityLevel() if
108 getLoginSecurityLevel() returns non-false.
109 * The 'ImageBeforeProduceHTML' hook is now passed three new parameters, $parser,
110 &$query and &$widthOption, allowing extensions even finer control over the
111 resulting HTML code.
112 * Added new 'ArticleShowPatrolFooter' hook, which allows extensions to determine
113 if the [mark as patrolled] link should be shown at the footer of patrollable
114 pages.
115 * The array of hidden options ($opts) passed to the 'SpecialSearchPowerBox' hook
116 is now passed by reference, allowing extensions to modify or even unset it.
117 * Added new 'OutputPageAfterGetHeadLinksArray' hook, allowing extensions to
118 modify the return value of OutputPage#getHeadLinksArray in order to add,
119 remove or otherwise alter the elements to be output in the page <head>.
120 * (T28934) The 'HistoryPageToolLinks' hook allows extensions to append
121 additional links to the subtitle of a history page.
122 * The 'GetLinkColours' hook now receives an additional $title parameter,
123 the Title object of the page being parsed, on which the links will be shown.
124 * (T194731) DifferenceEngine supports multiple slots. Added SlotDiffRenderer to
125 render diffs between two Content objects, and DifferenceEngine::setRevisions()
126 to render diffs between two custom (potentially multi-content) revisions.
127 Added GetSlotDiffRenderer hook which works like GetDifferenceEngine for slots.
128 * Added a temporary action=mcrundo to the web UI, as the normal undo logic
129 can't yet handle MCR and deadlines are forcing is to put off fixing that.
130 This action should be considered deprecated and should not be used directly.
131 * Extensions overriding ContentHandler::getUndoContent() will need to be
132 updated for the changed method signature.
133 * Added a new hook, 'UserGetRightsRemove', which can be used to remove rights
134 from user. Unlike the 'UserGetRights' it will ensure that removed rights
135 will not be reinserted.
136 * (T197535) Extensions can now specify PHP versions and PHP extensions they
137 depend on.
138
139 === External library changes in 1.32 ===
140
141 ==== New external libraries ====
142 * Added pear/Net_SMTP v1.8.0.
143 * Added wikimedia/xmp-reader v0.6.0.
144
145 * Added cache/integration-tests v0.16.0 (dev-only).
146 * Added giorgiosironi/eris v0.10.0 (dev-only).
147 * Added seld/jsonlint v1.7.1 (dev-only).
148
149 * Added EasyDeflate (unversioned).
150
151 ==== Changed external libraries ====
152 * Updated OOUI from v0.26.3 to v0.29.2.
153 * Updated wikimedia/base-convert from v1.0.1 to v2.0.0.
154 * Updated wikimedia/remex-html from v1.0.3 to v2.0.1.
155 * Updated wikimedia/scoped-callback from v1.0.0 to v2.0.0.
156 ** ScopedCallback objects can no longer be serialized.
157 * Updated wikimedia/timestamp from v1.0.0 to v2.2.0.
158 * Updated wikimedia/wrappedstring from v2.3.0 to v3.0.1.
159 * oyejorge/less.php replaced with our fork wikimedia/less.php
160
161 * Updated composer/spdx-licenses from v1.3.0 to v1.4.0 (dev-only).
162 * Updated mediawiki/mediawiki-codesniffer from v18.0.0 to v22.0.0 (dev-only).
163 * Updated psy/psysh from v0.8.11 to v0.9.6 (dev-only).
164
165 * Updated CLDRPluralRuleParser from v0.1.0 to v1.3.2-pre.
166 * Updated jquery from v3.2.1 to v3.3.1.
167 * Updated jquery.client from v2.0.0 to v2.0.1.
168 * Updated jquery.i18n from v1.0.4 to v1.0.5.
169 * Updated mustache.js from v0.8.2-d9aa703 to v1.0.0.
170 * Updated OOjs from v2.2.0 to v2.2.2.
171 * Updated qunitjs from v2.4.0 to v2.6.2.
172 * Updated sinonjs from v1.17.3 to v1.17.7.
173
174 ==== Removed external libraries ====
175 * pear/mail_mime-decode was removed.
176
177 === Bug fixes in 1.32 ===
178 * SpecialPage::execute() will now only call checkLoginSecurityLevel() if
179 getLoginSecurityLevel() returns non-false.
180 * (T43720, T46197) Improved page display title handling for category pages
181 * (T65080) Fixed resetting options of some types via API action=options.
182
183 === Action API changes in 1.32 ===
184 * Added templated parameters.
185 * A module can define a templated parameter like "{fruit}-quantity", where
186 the actual parameters recognized correspond to the values of a multi-valued
187 parameter. Then clients can make requests like
188 "fruits=apples|bananas&apples-quantity=1&bananas-quantity=5".
189 * action=paraminfo will return templated parameter definitions separately
190 from normal parameters. All parameter definitions now include an "index"
191 key to allow clients to maintain parameter ordering when merging normal and
192 templated parameters.
193 * It is now an error to submit too many values for a multi-valued parameter.
194 This has generated a warning since MediaWiki 1.14.
195 * Assertion failures from the 'assert' and 'assertuser' parameters will no
196 longer use the action module's custom response format, for the few modules
197 that use custom formatters that handle errors.
198 * (T198935) User list preferences such as `email-blacklist` and similar
199 extension preferences are no longer represented as arrays when returned by
200 action=query&meta=userinfo&uiprop=options.
201 * 'missingparam' errors will now use the prefixed parameter name in the code
202 and error text, e.g. "noxxfoo" and "The 'xxfoo' parameter must be set" rather
203 than "nofoo" and "The 'foo' parameter must be set".
204 * action=query&prop=revisions now takes a 'rvslots' parameter to indicate the
205 multi-content revision slots for which content should be returned. It also
206 has a new rvprop, 'roles', to indicate which roles have slots. A deprecation
207 warning will be issued if rvprop=content or rvprop=contentmodel are used
208 without rvslots.
209 * The rvcontentformat parameter to action=query&prop=revisions has been
210 deprecated. Clients should be prepared to deal with the default format for
211 relevant models.
212 * Use of the deprecated parameters rvexpandtemplates, rvgeneratexml, rvparse,
213 rvdiffto, rvdifftotext, rvdifftotextpst, rvcontentformat, or the deprecated
214 rvprop=parsetree is forbidden with the new 'rvslots' parameter.
215 * action=query&prop=deletedrevisions, action=query&list=allrevisions, and
216 action=query&list=alldeletedrevisions are changed similarly to
217 &prop=revisions (see the three previous items).
218 * (T174032) action=compare now supports multi-content revisions.
219 * It has a 'slots' parameter to select diffing of individual slots. The
220 default behavior is to return one combined diff.
221 * The 'fromtext', 'fromsection', 'fromcontentmodel', 'fromcontentformat',
222 'totext', 'tosection', 'tocontentmodel', and 'tocontentformat' parameters
223 are deprecated. Specify the new 'fromslots' and 'toslots' to identify which
224 slots have text supplied and the corresponding templated parameters for
225 each slot.
226 * The behavior of 'fromsection' and 'tosection' of extracting one section's
227 content is not being preserved. 'fromsection-{slot}' and 'tosection-{slot}'
228 instead expand the given text as if for a section edit. This effectively
229 declines T183823 in favor of T185723.
230 * (T198214) The 'disabletidy' parameter to action=parse has been
231 deprecated; untidy output will not be supported by future wikitext
232 parsers.
233 * Added intestactionsdetail to action=query&prop=info to allow retrieving the
234 reasons an action is not allowed.
235 * Deprecated action=query&prop=info inprop=readable in favor of
236 intestactions=read.
237
238 === Action API internal changes in 1.32 ===
239 * Added 'ApiParseMakeOutputPage' hook.
240 * Parameter names may no longer contain '{' or '}', as these are now used for
241 templated parameters.
242 * (T194950) Added 'ApiMaxLagInfo' hook.
243 * The following methods now take a RevisionRecord rather than a Revision. No
244 external callers are known.
245 * ApiFeedContributions::feedItemAuthor()
246 * ApiFeedContributions::feedItemDesc()
247 * ApiQueryRevisionsBase::extractRevisionInfo()
248 * The following deprecated methods have been removed:
249 * ApiBase::profileIn() (deprecated in 1.25)
250 * ApiBase::profileOut() (deprecated in 1.25)
251 * ApiBase::safeProfileOut() (deprecated in 1.25)
252 * ApiBase::profileDBIn() (deprecated in 1.25)
253 * ApiBase::profileDBOut() (deprecated in 1.25)
254 * ApiBase::dieUsage() (deprecated in 1.29)
255 * ApiBase::dieUsageMsg() (deprecated in 1.29)
256 * ApiBase::dieUsageMsgOrDebug() (deprecated in 1.29)
257 * ApiBase::getErrorFromStatus() (deprecated in 1.29)
258 * ApiBase::parseMsg() (deprecated in 1.29)
259 * ApiBase::setWarning() (deprecated in 1.29)
260 * ApiPageSet::getInvalidTitles() (deprecated in 1.26)
261 * ApiQueryLogEvents::addLogParams() (deprecated in 1.25)
262 * ApiUsageException::getCodeString() (deprecated in 1.29)
263 * ApiUsageException::getMessageArray() (deprecated in 1.29)
264 * Class UsageException, deprecated in 1.29, has been removed.
265 * ApiErrorFormatter: Added getFormat() and newWithFormat(). In particular, you
266 can now easily test $formatter->getFormat() === 'bc', and then call
267 $formatter->newWithFormat( 'plaintext' ) to get a non-BC formatter.
268
269 === Languages updated in 1.32 ===
270 MediaWiki supports over 350 languages. Many localisations are updated regularly.
271 Below only new and removed languages are listed, as well as changes to languages
272 because of Phabricator reports.
273
274 * (T193566) Added language support for Ambonese Malay (abs).
275 * (T194047) Added language support for Shawiya, Latin script (shy-latn).
276 * (T195940) Added language support for Batak Mandailing (btm).
277 * (T137491) Added language support for Standard Moroccan Amazigh (zgh).
278 * (T198132) Added language support for Manipuri (mni).
279 * (T201276) Added language support for Western Armenian (hyw).
280 * (T201583) Added language support for Mon (mnw).
281
282 === Breaking changes in 1.32 ===
283 * $wgRequestTime, deprecated in 1.25, was removed. Use
284 $_SERVER['REQUEST_TIME_FLOAT'] or WebRequest::getElapsedTime() instead.
285 * The MediaWikiI18N class, deprecated in 1.31, was removed.
286 * QuickTemplate::setTranslator(), deprecated in 1.31, was removed. Use
287 Skin::msg() instead.
288 * wfInitShellLocale(), deprecated in 1.30, was removed.
289 * wfShellExecDisabled(), deprecated in 1.30, was removed.
290 * The type string for the parameter $lang of DateFormatter::getInstance,
291 deprecated in 1.31, was removed.
292 * The EDIT_TOKEN_SUFFIX constant deprecated in 1.27, was removed. Use
293 MediaWiki\Session\Token::SUFFIX instead.
294 * EditPage::isOouiEnabled() deprecated in 1.30, was removed.
295 * mw.util.wikiGetlink(), deprecated in 1.23, was removed. Use mw.util.getUrl()
296 instead.
297 * (T61113) The following methods and constants from the Revision class, which
298 were deprecated in 1.25, have now been removed:
299 * Revision::getRawUser()
300 * Revision::getRawUserText()
301 * Revision::getRawComment()
302 * window.gM() from mediawiki.jqueryMsg, deprecated in 1.23, was removed. Use
303 mw.msg() or mw.message() instead.
304 * mw.util.escapeId(), deprecated in 1.30, was removed. Use
305 mw.util.escapeIdForAttribute or mw.util.escapeIdForLink instead.
306 * mw.util.updateTooltipAccessKeys(), deprecated in 1.24, was removed. Use
307 jquery.accessKeyLabel instead.
308 * The SqlDataUpdate class, deprecated in 1.28, has been removed.
309 * The Html5Internal and Html5Depurate tidy driver classes were removed, along
310 with the Balancer tidy implementation. Both implementations were experimental,
311 and were replaced by RemexHtml.
312 * (T179624) Job::insert() and ::batchInsert(), deprecated in 1.21, were both
313 removed. Use JobQueueGroup::singleton()->push() instead.
314 * The jquery.footHovzer module, for mediawiki.debug, was removed.
315 * The es5-shim module, empty and deprecated since 1.29, was removed.
316 * the dom-level2-shim module, empty and deprecated since 1.29, was removed.
317 * the json module, empty and deprecated since 1.29, was removed.
318 * The mediawiki.widgets.visibleByteLimit module alias, deprecated in 1.32, was
319 removed. Use mediawiki.widgets.visibleLengthLimit instead.
320 * The jquery.farbtastic module, unused since 1.18, was removed.
321 * The 'jquery.expandableField' module, unused since 1.22, was removed.
322 * The hooks 'PreferencesFormPreSave' and 'PreferencesGetLegend' may provide
323 any HTMLForm object rather than PreferencesForm.
324 * The non namespaced TimestampException class, deprecated in 1.29, was removed.
325 Use Wikimedia\Timestamp\TimestampException instead.
326 * The global functions codepointToUtf8, hexSequenceToUtf8, utf8ToHexSequence,
327 utf8ToCodepoint, and escapeSingleString (deprecated in 1.25) were removed.
328 The UtfNormal\Utils class from the utfnormal library should be used instead.
329 * The deprecated UTF8_ and UNICODE_ constants were removed. The class constants
330 from the UtfNormal\Constants class from the utfnormal library should be used
331 * The protected methods PHPSessionHandler::returnSuccess() and returnFailure(),
332 only needed for PHP5 compatibility, have been removed. It now uses the boolean
333 values `true` and `false` respectively.
334 * The $parserMemc global and wfGetParserCacheStorage(), deprecated since 1.30,
335 were removed. Use the ParserCache class instead.
336 * ScopedCallback (deprecated in 1.28) was removed. Use Wikimedia\ScopedCallback
337 instead.
338 * Support for ResourceLoaderModule::getModifiedTime() and getModifiedHash(),
339 deprecated since 1.26, was removed. Use getDefinitionSummary() instead.
340 * (T195256) Skins are recommended not to rely on JavaScript for the "mw-jump"
341 and "jump-to-nav" accessibility links. To this end, the "jquery.mw-jump"
342 is no longer loaded by default. The Vector and MonoBook skins have made a
343 minor change to implement the toggle feature with CSS instead. To restore
344 prior functionality, either explicitly load "jquery.mw-jump" in your skin
345 or refer to T195256 for details on how to make the same change.
346 * Hook 'EditPageBeforeEditChecks' was removed;
347 use 'EditPageGetCheckboxesDefinition' instead.
348 * Linker::getLinkColour() and DummyLinker::getLinkColour(), deprecated since
349 1.28, were removed. LinkRenderer::getLinkClasses() should be used instead.
350 * Wikimedia\Rdbms\LoadBalancer::getLaggedSlaveMode(), deprecated in 1.28, has
351 been removed. Use Wikimedia\Rdbms\LoadBalancer::getLaggedReplicaMode()
352 instead.
353 * mw.widgets.CategoryMultiselectWidget now uses TagMultiselectWidget instead of
354 CapsuleMultiselectWidget. The following methods may no longer be used:
355 * setItemsFromData: Use setValue instead
356 * getItemsData: Use getItems instead and get the data property
357 * Two OutputPage methods, addMetadataLink() and getMetadataAttribute(), were
358 removed. Use addLink() instead.
359 * Another two OutputPage methods, setPageTitleActionText() and
360 getPageTitleActionText(), were removed. They did nothing since 1.15 (almost
361 ten years). Use setHTMLTitle() directly.
362 * The return value of OutputPage::adaptCdnTTL() has been removed. The
363 value returned was misleading and probably not what any caller would
364 have wanted.
365 * All MagicWord static member variables have been removed. Use appropriate
366 hooks or MagicWordFactory methods instead.
367 * MagicWord::clearCache() has been removed. Instead, create a new
368 MagicWordFactory, such as by calling
369 resetServiceForTesting( 'MagicWordFactory' ) on a MediaWikiServices.
370 * mw.util.init() has been removed. This function is not needed anymore and was
371 a no-op function since 1.30.
372 * SpecialPageFactory::resetList() is a no-op. Call overrideMwServices()
373 instead.
374 * MediaWiki no longer supports a StartProfiler.php file. Instead, you can set
375 $wgProfiler and $wgEnableProfileInfo.
376 * The mw.loader.addSource() is now considered a private method, and no longer
377 supports the `id, url` signature. Use the `Object` parameter instead.
378 * The backwards-compatibility code in HTMLForm to add a drop-down control to an
379 option that is not set to be a drop-down if the "mw-chosen" class is present,
380 is now removed.
381 * Several collations were removed. They were workarounds for bugs in the ICU
382 library and they are no longer needed (as of ICU 57.1):
383 * 'uppercase-se' (NorthernSamiUppercaseCollation) - use 'uca-se' instead
384 * 'xx-uca-et' (CollationEt) - use 'uca-et' instead
385 * 'xx-uca-fa' (CollationFa) - use 'uca-fa' instead
386 * LanguageCode::bcp47() now always returns a valid BCP 47 code. This means
387 that some MediaWiki-specific language codes, such as `simple`, are mapped
388 into valid BCP 47 codes (eg `en-simple`).
389 * The hooks 'SpecialRecentChangesFilters' & 'SpecialWatchlistFilters' deprecated
390 in 1.23 were removed. Instead, use 'ChangesListSpecialPageStructuredFilters'.
391 The ChangesListSpecialPage code for these legacy hooks, and their use in
392 SpecialRecentchanges.php and SpecialWatchlist, was also removed:
393 * ChangesListSpecialPage->getCustomFilters()
394 * ChangesListSpecialPage->getFilterGroupDefinitionFromLegacyCustomFilters()
395 * ChangesListSpecialPage::customFilters
396 * The global function wfUseMW, deprecated since 1.26, has now been removed. Use
397 the "requires" property of static extension registration instead.
398 * $wgSpecialPages no longer accepts array syntax, deprecated since 1.18.
399 * The MailAddress constructor can no longer be called with a User object,
400 behaviour which has been deprecated since 1.24.
401 * LBFactory, deprecated since 1.28, has been removed. Instead, use
402 Wikimedia\Rdbms\LBFactory.
403 * The MimeMagic class, deprecated since 1.28 has been removed. Get a
404 MimeAnalyzer instance from MediaWikiServices instead.
405 * The '--tidy' option to maintenance/parse.php has been removed. Tidying
406 the output is now the default. Use '--no-tidy' to bypass the tidy
407 phase.
408 * The global function wfErrorLog, deprecated since 1.25, has now been removed.
409 Use MWLoggerLegacyLogger::emit or UDPTransport.
410 * The hooks 'SpecialRecentChangesQuery' & 'SpecialWatchlistQuery', deprecated in
411 1.23, were removed. Instead, use ChangesListSpecialPageStructuredFilters or
412 ChangesListSpecialPageQuery.
413 * The global function wfUsePHP, deprecated since 1.30, has now been removed. To
414 assert a newer version of PHP than MediaWiki does, use extension registration.
415 * The hook 'ChangesListSpecialPageFilters', deprecated in 1.29, has now been
416 removed. Use the 'ChangesListSpecialPageStructuredFilters' hook instead.
417 * DeferredUpdates::setImmediateMode(), deprecated since 1.29, has been removed.
418 * File / MediaHandler::getStreamHeaders(), deprecated since 1.30, was removed.
419 * The hook 'DoEditSectionLink', deprecated since 1.25, has been removed. Use
420 the hook 'SkinEditSectionLinks' instead.
421 * The hook 'UserGetImplicitGroups', deprecated since 1.25, has been removed.
422 * The global function wfRunHooks, deprecated since 1.25, has now been removed.
423 Use Hooks::run().
424 * The hook 'UnknownAction', deprecated since 1.19, has now been removed.
425 * The hook 'ParserLimitReport', deprecated since 1.22, has been removed. Use
426 the hooks 'ParserLimitReportPrepare' and 'ParserLimitReportFormat' instead.
427 * The following deprecated API methods have been removed:
428 * ApiBase::profileIn() (deprecated in 1.25)
429 * ApiBase::profileOut() (deprecated in 1.25)
430 * ApiBase::safeProfileOut() (deprecated in 1.25)
431 * ApiBase::profileDBIn() (deprecated in 1.25)
432 * ApiBase::profileDBOut() (deprecated in 1.25)
433 * ApiBase::dieUsage() (deprecated in 1.29)
434 * ApiBase::dieUsageMsg() (deprecated in 1.29)
435 * ApiBase::dieUsageMsgOrDebug() (deprecated in 1.29)
436 * ApiBase::getErrorFromStatus() (deprecated in 1.29)
437 * ApiBase::parseMsg() (deprecated in 1.29)
438 * ApiBase::setWarning() (deprecated in 1.29)
439 * ApiPageSet::getInvalidTitles() (deprecated in 1.26)
440 * ApiQueryLogEvents::addLogParams() (deprecated in 1.25)
441 * ApiUsageException::getCodeString() (deprecated in 1.29)
442 * ApiUsageException::getMessageArray() (deprecated in 1.29)
443 * Class UsageException, deprecated in 1.29, has been removed.
444 * MediaWiki no longer has a 'JavaScript-powered' wikitext toolbar built in. The
445 old "bulletin board style toolbar", known as "the 2006 wikitext editor", has
446 been removed, and instead sysadmins will be required to choose one (or more)
447 of the several extensions available for this purpose if they need the
448 functionality. The MediaWiki "tarball" releases have included the replacement
449 extension for this, the WikiEditor extension aka "the 2010 wikitext editor",
450 for many years now. As part of this, several parts of MediaWiki have been
451 removed or simplified:
452 * The user option 'showtoolbar' (shown as "Show edit toolbar") is no longer
453 available; if an extension adds a toolbar via the EditPageBeforeEditToolbar
454 hook, it will be shown; extensions should provide a specific user preference
455 to disable themselves as needed.
456 * The public methods Language::getImageFile() and ::getImageFiles(), and the
457 related specification of $imageFiles within individual languages' code file,
458 as well as the referenced static media assets, all of which were only used
459 inside MediaWiki itself for providing the icons for the old toolbar, have
460 been removed without explicit deprecation.
461 * The internal ResourceLoader module "mediawiki.toolbar", which is unused
462 except by MediaWiki itself and back-compatibility code, has been removed.
463 * The internal ResourceLoaderEditToolbarModule class has been removed.
464
465 === Deprecations in 1.32 ===
466 * HTMLForm::setSubmitProgressive() is deprecated. No need to call it. Submit
467 button is already marked as progressive.
468 * Skin::setupSkinUserCss() is deprecated. Adding of modules to load
469 has been centralised to Skin::getDefaultModules(), which is now capable
470 of queueing style modules as well.
471 * OutputPage::addModuleScripts() and ParserOutput::addModuleScripts are
472 deprecated. Use addModules() instead.
473 * Overriding SearchEngine::{searchText,searchTitle,searchArchiveTitle}
474 in extending classes is deprecated. Extend related doSearch* methods
475 instead.
476 * The following 'mediawiki.api' plugin modules were merged into mediawiki.api
477 and deprecated: mediawiki.api.category, mediawiki.api.edit,
478 mediawiki.api.login, mediawiki.api.options, mediawiki.api.parse,
479 mediawiki.api.upload, mediawiki.api.user, mediawiki.api.watch,
480 mediawiki.api.messages, and mediawiki.api.rollback.
481 * ApiBase::truncateArray() is deprecated. No replacement, as nothing is known
482 to use it.
483 * WatchAction::getUnwatchToken is deprecated. Use WatchAction::getWatchToken
484 with the 'unwatch' action parameter instead.
485 * IcuCollation::getICUVersion() is deprecated, as you can just use the PHP
486 constant INTL_ICU_VERSION directly in all versions that MediaWiki supports.
487 * Parser::fetchFile() is deprecated. Use ::fetchFileAndTitle() instead.
488 * The ApiQueryContributions class has been renamed to ApiQueryUserContribs.
489 * The XMPInfo, XMPReader, and XMPValidate classes have been deprecated in favor
490 of the namespaced classes provided by the wikimedia/xmp-reader library.
491 * SearchResultSet::{next,rewind} are deprecated. Calling code should
492 use foreach on the SearchResultSet, or the extractResults method. Extending
493 code should override extractResults.
494 * Instantiating SearchResultSet directly is deprecated. SearchEngine
495 implementations must subclass SearchResultSet for their purposes.
496 * SearchResult::setExtensionData argument has been changed from accepting an
497 array to accepting a Closure that returns the array when called.
498 * Class CryptRand, everything in MWCryptRand except generateHex() and function
499 MediaWikiServices::getCryptRand() are deprecated, use random_bytes() to
500 generate cryptographically secure random byte sequences.
501 * Parser::getConverterLanguage() is deprecated. Use ::getTargetLanguage()
502 instead.
503 * Language::markNoConversion() is deprecated. It confused readers because
504 it had unexpected behavior (only marking text if it looked like a URL)
505 and was only used in a single place in the code. Use
506 LanguageConverter::markNoConversion() instead.
507 * (T197492) Language::truncate() was soft deprecated in 1.31 and is
508 hard deprecated in this release. It has been split into two similar
509 methods, Language::truncateForVisual() and Language::truncateForDatabase(),
510 which measure length in characters and bytes, respectively. Use
511 Language::truncateForVisual() when possible to provide equity to users
512 of multibyte scripts.
513 * (T176526) EditPage::getContextTitle() falling back to $wgTitle when the
514 context title is unset is now deprecated; anything creating an EditPage
515 instance should set the context title via ::setContextTitle().
516 * The 'jquery.hidpi' module (polyfill for IMG srcset) is deprecated.
517 * ResourceLoaderStartUpModule::getStartupModules() and ::getLegacyModules()
518 are deprecated. These concepts are obsolete and have no replacement.
519 * String type for $lang of DifferenceEngine::setTextLanguage is deprecated.
520 * The following methods of OutputPage are now deprecated in favour
521 of using showFatalError directly: OutputPage::showFileDeleteError()
522 OutputPage::showFileNotFoundError(), OutputPage::showFileRenameError()
523 OutputPage::showFileCopyError() and OutputPage::showUnexpectedValueError().
524 * The Replacer, DoubleReplacer, HashtableReplacer, and RegexlikeReplacer
525 classes are now deprecated. Use a Closure instead.
526 * (T194263) ContentHandler::makeParserOptions() is deprecated. Use
527 WikiPage::makeParserOptions() or ParserOptions::newCanonical() instead.
528 * (T100681) Use of the Parsoid v1 API with the VirtualRESTService, deprecated in
529 MediaWiki 1.26, is now hard-deprecated. All known clients were converted to
530 the Parsoid v3 API in May 2015.
531 * $input is deprecated in hook 'LogEventsListGetExtraInputs'. Use
532 $formDescriptor instead.
533 * SearchEngine::transformSearchTerm( $term ) should no longer be called prior
534 to running searchText. This method was mainly implemented to support the
535 'prefix' URI param in SpecialSearch, but there are no reasons to expose this
536 logic as it should be handled internally by SearchEngine implementations
537 supporting this feature. SearchEngine implementations should no longer
538 override this methods.
539 * SearchEngine::replacePrefixes( $query ) should no longer be called prior
540 to running searchText/searchTitle.
541 * (T199657) Messages for $wgFilterLogTypes labels should be no longer be in the
542 'log-show-hide-[type]' format. Instead use 'logeventslist-[type]-log'.
543 * Global functions wfArrayFilter() and wfArrayFilterByKey() are deprecated.
544 use array_filter() directly.
545 * The $wgShowSQLErrors global is deprecated and nonfunctional.
546 Set $wgShowExceptionDetails and/or $wgShowHostnames instead.
547 * The $wgShowDBErrorBacktrace global is deprecated and nonfunctional.
548 Set $wgShowExceptionDetails instead.
549 * Public access to the DifferenceEngine properties mOldid, mNewid, mOldRev,
550 mNewRev, mOldPage, mNewPage, mOldContent, mNewContent, mRevisionsLoaded,
551 mTextLoaded and mCacheHit is deprecated. Use getOldid() / getNewid() /
552 getOldRevision() / getNewRevision() for the first four (note that the
553 revision ones return a RevisionRecord, not a Revision), do your own lookup
554 for page/content.
555 * The $wgExternalDiffEngine value 'wikidiff2' is deprecated. To use wikidiff2
556 just enable the PHP extension, and it will be autodetected.
557 * (T194731) DifferenceEngine properties mOldContent and mNewContent and methods
558 setContent(), generateContentDiffBody(), generateTextDiffBody() and textDiff()
559 are deprecated. To interact with a single slot, use a SlotDiffRenderer (and
560 subclass it to customize diff rendering); to diff custom (e.g. unsaved)
561 content, use setRevisions(). Subclassing DifferenceEngine should only be done
562 to customize page-level diff properties (such as the navigation header).
563 * The wfUseMW function, soft-deprecated in 1.26, is now hard deprecated.
564 * All MagicWord static methods are now deprecated. Use the MagicWordFactory
565 methods instead.
566 * PasswordFactory::init is deprecated. To get a password factory with the
567 standard configuration, use MediaWikiServices::getPasswordFactory.
568 * $wgContLang is deprecated, use MediaWikiServices::getContentLanguage()
569 instead.
570 * $wgParser is deprecated, use MediaWikiServices::getParser() instead.
571 * wfGetMainCache() is deprecated, use ObjectCache::getLocalClusterInstance()
572 instead.
573 * wfGetCache() is deprecated, use ObjectCache::getInstance() instead.
574 * All SpecialPageFactory static methods are deprecated. Instead, call the
575 methods on a SpecialPageFactory instance, which may be obtained from
576 MediaWikiServices.
577 * mw.user.stickyRandomId was renamed to the more explicit
578 mw.user.getPageviewToken to better capture its function.
579 * Passing Revision objects to ContentHandler::getUndoContent() is deprecated,
580 Content object should be passed instead.
581 * (T197179) Parameters 'notice', 'notice-messages', 'notice-message',
582 previously used by OOUI HTMLForm fields, are now deprecated. Use
583 'help', 'help-message', 'help-messages' instead.
584 * (T197179) HTMLFormField::getNotices() is now deprecated.
585 * The jquery.localize module is now deprecated. Use jquery.i18n instead.
586 * The SecondaryDataUpdates hook was deprecated in favor of RevisionDataUpdates,
587 or overriding ContentHandler::getSecondaryDataUpdates (T194038).
588 * The WikiPageDeletionUpdates hook was deprecated in favor of
589 PageDeletionDataUpdates, or overriding ContentHandler::getDeletionDataUpdates
590 (T194038).
591 * Content::getSecondaryDataUpdates has been deprecated in favor of
592 ContentHandler::getSecondaryDataUpdates() for overriding by extensions
593 (T194038).
594 Application logic should call WikiPage::doSecondaryDataUpdates() (T194037).
595 * Content::getDeletionUpdates has been deprecated in favor of
596 ContentHandler::getDeletionUpdates() for overriding by extensions (T194038).
597 Application logic should call WikiPage::doSecondaryDataUpdates() (T194037).
598 * (T198214) Old Tidy-related configuration settings, which were soft-deprecated
599 in MediaWiki 1.26, have now been hard deprecated. This affects $wgUseTidy,
600 $wgTidyBin, $wgTidyConf, $wgTidyOpts, $wgTidyInternal, and $wgDebugTidy. Use
601 $wgTidyConfig instead.
602 * All Tidy configurations other than Remex have been hard deprecated;
603 future parsers will not emit compatible output for these configurations.
604 In particular, running MediaWiki with tidy disabled has been deprecated.
605 * (T198214) OutputPage::addWikiText(), OutputPage::addWikiTextWithTitle(),
606 and OutputPage::addWikiTextTitle() have been deprecated, since they
607 can result in untidy output. In addition OutputPage::addWikiTextTidy()
608 and OutputPage::addWikiTextTitleTidy() was deprecated to make naming new
609 methods consistent. Use OutputPage::addWikiTextAsInterface() or
610 OutputPage::addWikiTextAsContent() instead, which ensures the output is
611 tidy and clarifies whether content-language specific postprocessing should
612 be done on the text.
613 * OutputPage::parse() and OutputPage::parseInline() have been deprecated
614 due to untidy output and inconsistent handling of wrapper divs and
615 interface/content language defaults. Use OutputPage::parseAsContent(),
616 OutputPage::parseAsInterface(), or OutputPage::parseInlineAsInterface()
617 as appropriate.
618 * QuickTemplate::msgHtml() and BaseTemplate::msgHtml() have been deprecated
619 as they promote bad practises. I18n messages should always be properly
620 escaped.
621 * Skin::getDynamicStylesheetQuery() has been deprecated. It always
622 returns action=raw&ctype=text/css which callers should use directly.
623 * Class LegacyFormatter is deprecated.
624 * Use of CommentStore::insertWithTempTable() with 'img_description' is
625 deprecated. Use CommentStore::insert() instead.
626 * Language::setCode is deprecated as public function. Use Language::factory
627 to create a new Language object with a different language code.
628 * Several classes have been moved from the MediaWiki\Storage\ namespace to the
629 MediaWiki\Revision\ namespace. The old class names are aliased for
630 compatibility, but are deprecated. Classes are IncompleteRevisionException,
631 MutableRevisionRecord, MutableRevisionSlots, RevisionAccessException,
632 RevisionArchiveRecord, RevisionFactory, RevisionLookup, RevisionRecord,
633 RevisionSlots, RevisionStore, RevisionStoreRecord, SlotRecord, and
634 SuppressedDataException.
635 * When using OOUI HTMLForm containing an 'info' field which uses the 'rawrow'
636 option, it is now deprecated to give its contents (the 'default' option)
637 as a string. They should be given as a OOUI\FieldLayout object instead.
638 Notably, this affects fields defined in the 'GetPreferences' hook, because
639 Special:Preferences uses an OOUI form now. (If possible, don't use 'rawrow'.)
640 * In Skin::doEditSectionLink omitting the parameters $tooltip and $lang is
641 deprecated. For the $lang parameter, types other than Language are
642 deprecated.
643 * The $wgUseKeyHeader configuration option and the
644 OutputPage::getKeyHeader() method have been deprecated; the relevant
645 draft IETF spec expired without becoming a standard.
646 * Deprecated API action=query&prop=info inprop=readable in favor of
647 intestactions=read.
648
649 === Other changes in 1.32 ===
650 * (T198811) The following tables have had their UNIQUE indexes turned into
651 proper PRIMARY KEYs for increased maintainability: interwiki, page_props,
652 protected_titles and site_identifiers.
653 * OOUI HTMLForm will now display help text inline after the input field,
654 rather than in a popup. Previous behavior can be restored by using
655 `'help-inline' => false`.
656 * The archive table's ar_rev_id field is now unique.
657 * Special:BotPasswords now requires reauthentication.
658 * (T174023) Multi-Content Revision (MCR) capabilities were introduced into the
659 storage layer and have basic support for display. No user interface exists
660 yet for creating or managing content in slots beides the main slot. See
661 <https://www.mediawiki.org/wiki/Multi-Content_Revisions> for more
662 information.
663 * The image_comment_temp database table has been removed. Since all access
664 should be mediated by the CommentStore class, this change shouldn't affect
665 external code.
666 * (T206147) Database::close() will no longer commit any open transactions.
667 * (T64103) Dropped columns category.cat_hidden, site_stats.ss_admins, and
668 recentchanges.rc_cur_time from the PostgreSQL schema.
669
670 == Compatibility ==
671 MediaWiki 1.32 requires PHP 7.0.0 or later. Although HHVM 3.18.5 or later is
672 supported, it is generally advised to use PHP 7.0.0 or later for long term
673 support. MediaWiki requires that the mbstring, xml, ctype, json, iconv and
674 fileinfo PHP extensions are loaded to work.
675
676 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
677 but support for them is somewhat less mature. There is experimental support for
678 Oracle and Microsoft SQL Server.
679
680 The supported versions are:
681
682 * MySQL 5.5.8 or later
683 * PostgreSQL 9.2 or later
684 * SQLite 3.3.7 or later
685 * Oracle 9.0.1 or later
686 * Microsoft SQL Server 2005 (9.00.1399)
687
688 == Upgrading ==
689 1.32 has several database changes since 1.31, and will not work without schema
690 updates. Note that due to changes to some very large tables like the revision
691 table, the schema update may take quite long (minutes on a medium sized site,
692 many hours on a large site).
693
694 Don't forget to always back up your database before upgrading!
695
696 See the file UPGRADE for more detailed upgrade instructions, including
697 important information when upgrading from versions prior to 1.11.
698
699 For notes on 1.31.x and older releases, see HISTORY.
700
701 == Online documentation ==
702 Documentation for both end-users and site administrators is available on
703 MediaWiki.org, and is covered under the GNU Free Documentation License (except
704 for pages that explicitly state that their contents are in the public domain):
705
706 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
707
708 == Mailing list ==
709 A mailing list is available for MediaWiki user support and discussion:
710
711 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
712
713 A low-traffic announcements-only list is also available:
714
715 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
716
717 It's highly recommended that you sign up for one of these lists if you're
718 going to run a public MediaWiki, so you can be notified of security fixes.
719
720 == IRC help ==
721 There's usually someone online in #mediawiki on irc.freenode.net.