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